Skip to content

Commit

Permalink
Shipping v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ptimatth committed Nov 12, 2024
2 parents 6257b65 + eea4e1b commit 691b5c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
12 changes: 1 addition & 11 deletions custom_components/georide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import homeassistant.helpers.event as ha_event

from homeassistant.setup import async_when_setup
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.helpers.update_coordinator import (
CoordinatorEntity,
DataUpdateCoordinator,
Expand Down Expand Up @@ -93,16 +92,7 @@ async def async_setup_entry(hass, entry):
# We add trackers to the context
await context.init_context(hass)

hass.async_create_task(
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"))
await hass.config_entries.async_forward_entry_setups(entry, ["device_tracker", "switch", "sensor", "binary_sensor", "siren"])
return True


Expand Down
4 changes: 2 additions & 2 deletions custom_components/georide/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
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.helpers.update_coordinator import (
Expand Down Expand Up @@ -78,7 +78,7 @@ def longitude(self):
@property
def source_type(self):
"""Return the source type, eg gps or router, of the device."""
return SOURCE_TYPE_GPS
return SourceType.GPS

@property
def location_accuracy(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/georide/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"dependencies": [],
"codeowners": ["ptimatth"],
"version": "1.1.0"
"version": "1.1.1"
}
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"render_readme": true,
"domains": ["devices_tracker", "sensor"],
"country": ["FR"],
"homeassistant": "2023.2.0"
"homeassistant": "2024.11.0"
}

0 comments on commit 691b5c2

Please sign in to comment.