diff --git a/homeassistant/components/plum_lightpad/__init__.py b/homeassistant/components/plum_lightpad/__init__.py index cca40f4e5a96..83aec34a185b 100644 --- a/homeassistant/components/plum_lightpad/__init__.py +++ b/homeassistant/components/plum_lightpad/__init__.py @@ -61,8 +61,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Plum Lightpad from a config entry.""" _LOGGER.debug("Setting up config entry with ID = %s", entry.unique_id) - username = entry.data.get(CONF_USERNAME) - password = entry.data.get(CONF_PASSWORD) + username = entry.data[CONF_USERNAME] + password = entry.data[CONF_PASSWORD] try: plum = await load_plum(username, password, hass) diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py index 5ded654156da..f9983135e144 100644 --- a/homeassistant/components/plum_lightpad/light.py +++ b/homeassistant/components/plum_lightpad/light.py @@ -32,7 +32,7 @@ async def async_setup_entry( plum: Plum = hass.data[DOMAIN][entry.entry_id] def setup_entities(device) -> None: - entities = [] + entities: list[LightEntity] = [] if "lpid" in device: lightpad = plum.get_lightpad(device["lpid"]) diff --git a/mypy.ini b/mypy.ini index b185c91a6434..6dbd76c288e5 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2164,9 +2164,6 @@ ignore_errors = true [mypy-homeassistant.components.plugwise.*] ignore_errors = true -[mypy-homeassistant.components.plum_lightpad.*] -ignore_errors = true - [mypy-homeassistant.components.profiler.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index f913093f0a58..63044da62256 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -63,7 +63,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.plaato.*", "homeassistant.components.plex.*", "homeassistant.components.plugwise.*", - "homeassistant.components.plum_lightpad.*", "homeassistant.components.profiler.*", "homeassistant.components.ring.*", "homeassistant.components.smartthings.*",