mirror of
https://github.com/home-assistant/core
synced 2024-08-02 23:40:32 +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."""
|
"""Set up Plum Lightpad from a config entry."""
|
||||||
_LOGGER.debug("Setting up config entry with ID = %s", entry.unique_id)
|
_LOGGER.debug("Setting up config entry with ID = %s", entry.unique_id)
|
||||||
|
|
||||||
username = entry.data.get(CONF_USERNAME)
|
username = entry.data[CONF_USERNAME]
|
||||||
password = entry.data.get(CONF_PASSWORD)
|
password = entry.data[CONF_PASSWORD]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
plum = await load_plum(username, password, hass)
|
plum = await load_plum(username, password, hass)
|
||||||
|
@ -32,7 +32,7 @@ async def async_setup_entry(
|
|||||||
plum: Plum = hass.data[DOMAIN][entry.entry_id]
|
plum: Plum = hass.data[DOMAIN][entry.entry_id]
|
||||||
|
|
||||||
def setup_entities(device) -> None:
|
def setup_entities(device) -> None:
|
||||||
entities = []
|
entities: list[LightEntity] = []
|
||||||
|
|
||||||
if "lpid" in device:
|
if "lpid" in device:
|
||||||
lightpad = plum.get_lightpad(device["lpid"])
|
lightpad = plum.get_lightpad(device["lpid"])
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -2164,9 +2164,6 @@ ignore_errors = true
|
|||||||
[mypy-homeassistant.components.plugwise.*]
|
[mypy-homeassistant.components.plugwise.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.plum_lightpad.*]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.profiler.*]
|
[mypy-homeassistant.components.profiler.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
@ -63,7 +63,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||||||
"homeassistant.components.plaato.*",
|
"homeassistant.components.plaato.*",
|
||||||
"homeassistant.components.plex.*",
|
"homeassistant.components.plex.*",
|
||||||
"homeassistant.components.plugwise.*",
|
"homeassistant.components.plugwise.*",
|
||||||
"homeassistant.components.plum_lightpad.*",
|
|
||||||
"homeassistant.components.profiler.*",
|
"homeassistant.components.profiler.*",
|
||||||
"homeassistant.components.ring.*",
|
"homeassistant.components.ring.*",
|
||||||
"homeassistant.components.smartthings.*",
|
"homeassistant.components.smartthings.*",
|
||||||
|
Loading…
Reference in New Issue
Block a user