Correct typing in edl21 and activate mypy. (#53188)
This commit is contained in:
parent
56efee4603
commit
8f61efe714
3 changed files with 1 additions and 5 deletions
|
@ -126,7 +126,7 @@ class EDL21:
|
|||
|
||||
def __init__(self, hass, config, async_add_entities) -> None:
|
||||
"""Initialize an EDL21 object."""
|
||||
self._registered_obis = set()
|
||||
self._registered_obis: set[()] = set()
|
||||
self._hass = hass
|
||||
self._async_add_entities = async_add_entities
|
||||
self._name = config[CONF_NAME]
|
||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -1150,9 +1150,6 @@ ignore_errors = true
|
|||
[mypy-homeassistant.components.doorbird.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.edl21.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.elkm1.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||
"homeassistant.components.dhcp.*",
|
||||
"homeassistant.components.directv.*",
|
||||
"homeassistant.components.doorbird.*",
|
||||
"homeassistant.components.edl21.*",
|
||||
"homeassistant.components.elkm1.*",
|
||||
"homeassistant.components.emonitor.*",
|
||||
"homeassistant.components.enphase_envoy.*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue