mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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
|
||||
|
||||
_optimistic: bool
|
||||
_state_on: str
|
||||
_state_off: str
|
||||
_is_on_map: dict[str | bytes, bool | None]
|
||||
_value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user