Skip to content

Commit

Permalink
Start dropping support for HA versions older than 2024.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbruckner committed Nov 21, 2024
1 parent 5417d32 commit 9c7b22e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions custom_components/google_maps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from functools import partial
import logging
from typing import cast
from typing import Any, cast

from homeassistant.components.device_tracker import DOMAIN as DT_DOMAIN
from homeassistant.config_entries import ConfigEntry
Expand Down Expand Up @@ -31,7 +31,7 @@ async def async_setup(hass: HomeAssistant, _: ConfigType) -> bool:
hass.data[DOMAIN] = GMIntegData(ConfigUniqueIDs(hass))
ent_reg = er.async_get(hass)

async def device_work_around(_: Event) -> None:
async def device_work_around(_: Any) -> None:
"""Work around for device tracker component deleting devices.
Applies to HA versions prior to 2024.5:
Expand Down
8 changes: 1 addition & 7 deletions custom_components/google_maps/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@
from homeassistant.helpers.device_registry import (
STORAGE_VERSION_MAJOR,
STORAGE_VERSION_MINOR,
DeviceInfo,
)

# DeviceInfo moved in 2023.9.0b0
try:
from homeassistant.helpers.device_registry import DeviceInfo
except ImportError:
from homeassistant.helpers.entity import DeviceInfo # type: ignore[attr-defined]

from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.event import track_time_interval
from homeassistant.helpers.restore_state import RestoreEntity
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Google Maps",
"homeassistant": "2023.7.0"
"homeassistant": "2024.8.3"
}

0 comments on commit 9c7b22e

Please sign in to comment.