Small cleanup of Tasmota (#43642)

This commit is contained in:
Erik Montnemery 2020-11-26 22:34:26 +01:00 committed by GitHub
parent deb45f7c90
commit 974e099e2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 84 additions and 161 deletions

View file

@ -7,7 +7,7 @@ from homeassistant.components.cover import CoverEntity
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from .const import DATA_REMOVE_DISCOVER_COMPONENT, DOMAIN as TASMOTA_DOMAIN
from .const import DATA_REMOVE_DISCOVER_COMPONENT
from .discovery import TASMOTA_DISCOVERY_ENTITY_NEW
from .mixins import TasmotaAvailability, TasmotaDiscoveryUpdate
@ -26,7 +26,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
DATA_REMOVE_DISCOVER_COMPONENT.format(cover.DOMAIN)
] = async_dispatcher_connect(
hass,
TASMOTA_DISCOVERY_ENTITY_NEW.format(cover.DOMAIN, TASMOTA_DOMAIN),
TASMOTA_DISCOVERY_ENTITY_NEW.format(cover.DOMAIN),
async_discover,
)
@ -44,7 +44,6 @@ class TasmotaCover(
self._position = None
super().__init__(
discovery_update=self.discovery_update,
**kwds,
)