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:
parent
1551da33ac
commit
3ef2eadaf5
@ -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)
|
||||
|
@ -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"])
|
||||
|
3
mypy.ini
3
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
|
||||
|
||||
|
@ -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.*",
|
||||
|
Loading…
Reference in New Issue
Block a user