Add Tasmota light (#41485)
This commit is contained in:
parent
c63c253b7f
commit
042ce1cb92
6 changed files with 1019 additions and 6 deletions
|
@ -16,8 +16,6 @@ from .discovery import (
|
|||
set_discovery_hash,
|
||||
)
|
||||
|
||||
DATA_MQTT = "mqtt"
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@ -52,7 +50,7 @@ class TasmotaEntity(Entity):
|
|||
|
||||
@callback
|
||||
def state_updated(self, state, **kwargs):
|
||||
"""Handle new MQTT state messages."""
|
||||
"""Handle state updates."""
|
||||
self._state = state
|
||||
self.async_write_ha_state()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue