mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Remove uneeded setdefault from Whirlpool config entry (#142999)
This commit is contained in:
parent
09a86d2ed2
commit
7b3e7b7aea
@ -24,8 +24,6 @@ type WhirlpoolConfigEntry = ConfigEntry[AppliancesManager]
|
|||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: WhirlpoolConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: WhirlpoolConfigEntry) -> bool:
|
||||||
"""Set up Whirlpool Sixth Sense from a config entry."""
|
"""Set up Whirlpool Sixth Sense from a config entry."""
|
||||||
hass.data.setdefault(DOMAIN, {})
|
|
||||||
|
|
||||||
session = async_get_clientsession(hass)
|
session = async_get_clientsession(hass)
|
||||||
region = CONF_REGIONS_MAP[entry.data.get(CONF_REGION, "EU")]
|
region = CONF_REGIONS_MAP[entry.data.get(CONF_REGION, "EU")]
|
||||||
brand = CONF_BRANDS_MAP[entry.data.get(CONF_BRAND, "Whirlpool")]
|
brand = CONF_BRANDS_MAP[entry.data.get(CONF_BRAND, "Whirlpool")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user