mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-19 00:20:44 +08:00
fix the deleted public data class
This commit is contained in:
parent
d1c49bdf7b
commit
55d27409b7
@ -196,6 +196,17 @@ class MIoTDeviceState(Enum):
|
|||||||
OFFLINE = auto()
|
OFFLINE = auto()
|
||||||
ONLINE = auto()
|
ONLINE = auto()
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class MipsDeviceState:
|
||||||
|
"""MIoT Pub/Sub device state."""
|
||||||
|
did: str | None = None
|
||||||
|
"""handler
|
||||||
|
str: did
|
||||||
|
MIoTDeviceState: online/offline/disable
|
||||||
|
Any: ctx
|
||||||
|
"""
|
||||||
|
handler: Callable[[str, MIoTDeviceState, Any], None] | None = None
|
||||||
|
handler_ctx: Any = None
|
||||||
|
|
||||||
class _MipsClient(ABC):
|
class _MipsClient(ABC):
|
||||||
"""MIoT Pub/Sub client."""
|
"""MIoT Pub/Sub client."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user