Skip to content

Commit

Permalink
Make core config move backwards compatible (#167)
Browse files Browse the repository at this point in the history
* Backwards compatible core config move

* Update const.py
  • Loading branch information
elcajon authored Nov 2, 2024
1 parent b1e1f66 commit 0bfa2e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/dwd_weather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.core_config import Config
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from homeassistant.helpers.entity_registry import async_migrate_entries
from homeassistant.helpers.typing import ConfigType
from homeassistant.core import callback
from simple_dwd_weatherforecast import dwdforecast

Expand Down Expand Up @@ -47,7 +47,7 @@
PLATFORMS = ["weather", "sensor"]


async def async_setup(hass: HomeAssistant, config: Config) -> bool:
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up configured DWD Weather."""
return True

Expand Down
2 changes: 1 addition & 1 deletion custom_components/dwd_weather/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Platform.WEATHER,
]
INTEGRATION_VERSION = "2.1.22"
MIN_REQUIRED_HA_VERSION = "2024.11"
MIN_REQUIRED_HA_VERSION = "2024.10"

ATTR_LATEST_UPDATE = "latest_update_utc"
ATTR_REPORT_ISSUE_TIME = "report_time_utc"
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Deutscher Wetterdienst",
"homeassistant": "2024.11.0b0",
"homeassistant": "2024.10",
"domains": [
"weather",
"sensor"
Expand Down

0 comments on commit 0bfa2e0

Please sign in to comment.