Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 691b5c2475 | |||
| eea4e1bb6b | |||
| 43b578cd98 | |||
| f7d801e1f4 | |||
| 6257b65687 | |||
|
|
cbf81d7438 | ||
|
|
33d8942e31 | ||
| 7d08d8f9a7 | |||
| ad77edd103 | |||
| be29b2d9bf |
14
README.md
14
README.md
@@ -4,6 +4,7 @@
|
|||||||
⚠️ This is not an official implementation
|
⚠️ This is not an official implementation
|
||||||
[](https://github.com/custom-components/hacs)
|
[](https://github.com/custom-components/hacs)
|
||||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||||
|
[](https://analytics.home-assistant.io/)
|
||||||
|
|
||||||
Official GeoRide website: https://georide.fr/
|
Official GeoRide website: https://georide.fr/
|
||||||
|
|
||||||
@@ -101,12 +102,21 @@ mode: single
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
### Option 1
|
### Option 1
|
||||||
- Just folow the integration config steps.
|
- Just follow the integration config steps.
|
||||||
|
|
||||||
### Option 2
|
### Option 2
|
||||||
- Add the folowing line in your configuration.yml
|
- Add the following line in your configuration.yml
|
||||||
```yaml
|
```yaml
|
||||||
georide:
|
georide:
|
||||||
email: <your-email>@exmple.com
|
email: <your-email>@exmple.com
|
||||||
password: <your-password>
|
password: <your-password>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Option 3 (manual)
|
||||||
|
- Download .zip git repo
|
||||||
|
- Go to /config (with File Editor or SSH)
|
||||||
|
- Unzip GeorideHA.zip
|
||||||
|
- Restart Home Assistant
|
||||||
|
- Go to "Integrations"
|
||||||
|
- If GeoRide not display, choose "add integration"
|
||||||
|
- Configure GeoRide add-on
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
import homeassistant.helpers.event as ha_event
|
import homeassistant.helpers.event as ha_event
|
||||||
|
|
||||||
from homeassistant.setup import async_when_setup
|
from homeassistant.setup import async_when_setup
|
||||||
from homeassistant.helpers.typing import HomeAssistantType
|
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
CoordinatorEntity,
|
CoordinatorEntity,
|
||||||
DataUpdateCoordinator,
|
DataUpdateCoordinator,
|
||||||
@@ -93,16 +92,7 @@ async def async_setup_entry(hass, entry):
|
|||||||
# We add trackers to the context
|
# We add trackers to the context
|
||||||
await context.init_context(hass)
|
await context.init_context(hass)
|
||||||
|
|
||||||
hass.async_create_task(
|
await hass.config_entries.async_forward_entry_setups(entry, ["device_tracker", "switch", "sensor", "binary_sensor", "siren"])
|
||||||
hass.config_entries.async_forward_entry_setup(entry, "device_tracker"))
|
|
||||||
hass.async_create_task(
|
|
||||||
hass.config_entries.async_forward_entry_setup(entry, "switch"))
|
|
||||||
hass.async_create_task(
|
|
||||||
hass.config_entries.async_forward_entry_setup(entry, "sensor"))
|
|
||||||
hass.async_create_task(
|
|
||||||
hass.config_entries.async_forward_entry_setup(entry, "binary_sensor"))
|
|
||||||
hass.async_create_task(
|
|
||||||
hass.config_entries.async_forward_entry_setup(entry, "siren"))
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any, Mapping
|
from typing import Any, Mapping
|
||||||
|
|
||||||
from homeassistant.components.device_tracker.const import DOMAIN, SOURCE_TYPE_GPS
|
from homeassistant.components.device_tracker.const import DOMAIN, SourceType
|
||||||
from homeassistant.components.device_tracker.config_entry import TrackerEntity
|
from homeassistant.components.device_tracker.config_entry import TrackerEntity
|
||||||
|
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
@@ -78,7 +78,7 @@ class GeoRideTrackerEntity(CoordinatorEntity, TrackerEntity):
|
|||||||
@property
|
@property
|
||||||
def source_type(self):
|
def source_type(self):
|
||||||
"""Return the source type, eg gps or router, of the device."""
|
"""Return the source type, eg gps or router, of the device."""
|
||||||
return SOURCE_TYPE_GPS
|
return SourceType.GPS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def location_accuracy(self):
|
def location_accuracy(self):
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
"issue_tracker": "https://github.com/ptimatth/GeorideHA/issues",
|
"issue_tracker": "https://github.com/ptimatth/GeorideHA/issues",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"georideapilib>=0.9.4",
|
"georideapilib>=1.0.0",
|
||||||
"pyjwt>=2.2.0"
|
"pyjwt>=2.2.0"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": ["ptimatth"],
|
"codeowners": ["ptimatth"],
|
||||||
"version": "1.0.0"
|
"version": "1.1.1"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user