mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix mqtt switch types (#118193)
Remove unused code, add missing type for _is_on_map
This commit is contained in:
parent
0588806922
commit
039bc3501b
@ -78,8 +78,7 @@ class MqttSwitch(MqttEntity, SwitchEntity, RestoreEntity):
|
|||||||
_entity_id_format = switch.ENTITY_ID_FORMAT
|
_entity_id_format = switch.ENTITY_ID_FORMAT
|
||||||
|
|
||||||
_optimistic: bool
|
_optimistic: bool
|
||||||
_state_on: str
|
_is_on_map: dict[str | bytes, bool | None]
|
||||||
_state_off: str
|
|
||||||
_value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
|
_value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user