Switch from mypy to pyright
This commit is contained in:
parent
7b26d3a160
commit
cc0c978f0c
12 changed files with 1000 additions and 17 deletions
|
@ -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
|
||||
|
|
Reference in a new issue