1
mirror of https://github.com/home-assistant/core synced 2024-07-12 07:21:24 +02:00

Remove plum lightpad from mypy ignore list (#64523)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-20 09:47:42 +01:00 committed by GitHub
parent 1551da33ac
commit 3ef2eadaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View File

@ -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)

View File

@ -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"])

View File

@ -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

View File

@ -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.*",