Skip to content

Commit 691b5c2

Browse files
committed
Shipping v1.1.1
2 parents 6257b65 + eea4e1b commit 691b5c2

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

custom_components/georide/__init__.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import homeassistant.helpers.event as ha_event
2626

2727
from homeassistant.setup import async_when_setup
28-
from homeassistant.helpers.typing import HomeAssistantType
2928
from homeassistant.helpers.update_coordinator import (
3029
CoordinatorEntity,
3130
DataUpdateCoordinator,
@@ -93,16 +92,7 @@ async def async_setup_entry(hass, entry):
9392
# We add trackers to the context
9493
await context.init_context(hass)
9594

96-
hass.async_create_task(
97-
hass.config_entries.async_forward_entry_setup(entry, "device_tracker"))
98-
hass.async_create_task(
99-
hass.config_entries.async_forward_entry_setup(entry, "switch"))
100-
hass.async_create_task(
101-
hass.config_entries.async_forward_entry_setup(entry, "sensor"))
102-
hass.async_create_task(
103-
hass.config_entries.async_forward_entry_setup(entry, "binary_sensor"))
104-
hass.async_create_task(
105-
hass.config_entries.async_forward_entry_setup(entry, "siren"))
95+
await hass.config_entries.async_forward_entry_setups(entry, ["device_tracker", "switch", "sensor", "binary_sensor", "siren"])
10696
return True
10797

10898

custom_components/georide/device_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
from typing import Any, Mapping
55

6-
from homeassistant.components.device_tracker.const import DOMAIN, SOURCE_TYPE_GPS
6+
from homeassistant.components.device_tracker.const import DOMAIN, SourceType
77
from homeassistant.components.device_tracker.config_entry import TrackerEntity
88

99
from homeassistant.helpers.update_coordinator import (
@@ -78,7 +78,7 @@ def longitude(self):
7878
@property
7979
def source_type(self):
8080
"""Return the source type, eg gps or router, of the device."""
81-
return SOURCE_TYPE_GPS
81+
return SourceType.GPS
8282

8383
@property
8484
def location_accuracy(self):

custom_components/georide/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
],
1212
"dependencies": [],
1313
"codeowners": ["ptimatth"],
14-
"version": "1.1.0"
14+
"version": "1.1.1"
1515
}

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"render_readme": true,
55
"domains": ["devices_tracker", "sensor"],
66
"country": ["FR"],
7-
"homeassistant": "2023.2.0"
7+
"homeassistant": "2024.11.0"
88
}

0 commit comments

Comments
 (0)