Remove uneeded setdefault from Whirlpool config entry (#142999)

This commit is contained in:
Abílio Costa 2025-04-15 17:03:51 +01:00 committed by GitHub
parent 09a86d2ed2
commit 7b3e7b7aea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,8 +24,6 @@ type WhirlpoolConfigEntry = ConfigEntry[AppliancesManager]
async def async_setup_entry(hass: HomeAssistant, entry: WhirlpoolConfigEntry) -> bool:
"""Set up Whirlpool Sixth Sense from a config entry."""
hass.data.setdefault(DOMAIN, {})
session = async_get_clientsession(hass)
region = CONF_REGIONS_MAP[entry.data.get(CONF_REGION, "EU")]
brand = CONF_BRANDS_MAP[entry.data.get(CONF_BRAND, "Whirlpool")]