mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Remove unnecessary hass.data defaults from Rainbird (#131858)
This commit is contained in:
parent
87320609dc
commit
8862c5c4d8
@ -65,8 +65,6 @@ def _async_register_clientsession_shutdown(
|
|||||||
async def async_setup_entry(hass: HomeAssistant, entry: RainbirdConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: RainbirdConfigEntry) -> bool:
|
||||||
"""Set up the config entry for Rain Bird."""
|
"""Set up the config entry for Rain Bird."""
|
||||||
|
|
||||||
hass.data.setdefault(DOMAIN, {})
|
|
||||||
|
|
||||||
clientsession = async_create_clientsession()
|
clientsession = async_create_clientsession()
|
||||||
_async_register_clientsession_shutdown(hass, entry, clientsession)
|
_async_register_clientsession_shutdown(hass, entry, clientsession)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user