Add Tasmota light (#41485)

This commit is contained in:
Erik Montnemery 2020-10-14 17:47:13 +02:00 committed by GitHub
parent c63c253b7f
commit 042ce1cb92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1019 additions and 6 deletions

View file

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