Skip to content

Commit 265de91

Browse files
authored
Add type for wiz (home-assistant#147454)
1 parent 7322fe4 commit 265de91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

homeassistant/components/wiz/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ async def _async_discovery(*_: Any) -> None:
6363
return True
6464

6565

66-
async def _async_update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
66+
async def _async_update_listener(hass: HomeAssistant, entry: WizConfigEntry) -> None:
6767
"""Handle options update."""
6868
await hass.config_entries.async_reload(entry.entry_id)
6969

7070

71-
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
71+
async def async_setup_entry(hass: HomeAssistant, entry: WizConfigEntry) -> bool:
7272
"""Set up the wiz integration from a config entry."""
7373
ip_address = entry.data[CONF_HOST]
7474
_LOGGER.debug("Get bulb with IP: %s", ip_address)
@@ -145,7 +145,7 @@ def _async_push_update(state: PilotParser) -> None:
145145
return True
146146

147147

148-
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
148+
async def async_unload_entry(hass: HomeAssistant, entry: WizConfigEntry) -> bool:
149149
"""Unload a config entry."""
150150
if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
151151
await entry.runtime_data.bulb.async_close()

0 commit comments

Comments
 (0)