Switch from mypy to pyright

This commit is contained in:
Edgar P. Burkhart 2024-12-09 13:25:00 +01:00
parent 7b26d3a160
commit cc0c978f0c
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
12 changed files with 1000 additions and 17 deletions

View file

@ -38,7 +38,7 @@ class HAClient:
self.selector = Selector(self.send_data)
@property
def ha_options(self) -> dict[str, str | dict[str, str]]:
def ha_options(self) -> dict[str, Any]:
return {
"dev": {
"ids": "oin",
@ -166,6 +166,10 @@ class HAClient:
self.selector.switch = True
case "off":
self.selector.switch = False
case other:
logger.warning(f"Unknown state received: <{other}>.")
case _:
pass
def secondary_state_update(
self, client: mqtt.Client, userdata: Any, message: mqtt.MQTTMessage