Fix mqtt switch types (#118193)

Remove unused code, add missing type for _is_on_map
This commit is contained in:
J. Nick Koston 2024-05-26 11:18:07 -10:00 committed by GitHub
parent 0588806922
commit 039bc3501b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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