Fix mypy errors (#139)

This commit is contained in:
Oxan van Leeuwen 2021-11-22 23:08:04 +01:00 committed by GitHub
parent 04d3ab6a93
commit f68fc025a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ from .core import APIConnectionError
_LOGGER = logging.getLogger(__name__)
class ReconnectLogic(zeroconf.RecordUpdateListener): # type: ignore[misc,name-defined]
class ReconnectLogic(zeroconf.RecordUpdateListener):
"""Reconnectiong logic handler for ESPHome config entries.
Contains two reconnect strategies:
@ -224,7 +224,7 @@ class ReconnectLogic(zeroconf.RecordUpdateListener): # type: ignore[misc,name-d
self,
zc: "zeroconf.Zeroconf", # pylint: disable=unused-argument
now: float, # pylint: disable=unused-argument
records: List["zeroconf.RecordUpdate"], # type: ignore[name-defined]
records: List["zeroconf.RecordUpdate"],
) -> None:
"""Listen to zeroconf updated mDNS records. This must be called from the eventloop.