Small cleanup of Tasmota (#43642)
This commit is contained in:
parent
deb45f7c90
commit
974e099e2a
8 changed files with 84 additions and 161 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue