From 039bc3501b7474f6fd5eb3fbc6f3345c9f438c83 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 26 May 2024 11:18:07 -1000 Subject: [PATCH] Fix mqtt switch types (#118193) Remove unused code, add missing type for _is_on_map --- homeassistant/components/mqtt/switch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/mqtt/switch.py b/homeassistant/components/mqtt/switch.py index c11e843fc9b..bf5af232e04 100644 --- a/homeassistant/components/mqtt/switch.py +++ b/homeassistant/components/mqtt/switch.py @@ -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