mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix Tasmota stale docstring + print level (#41992)
This commit is contained in:
parent
30b454ddb7
commit
49b7f317ff
@ -1,4 +1,4 @@
|
||||
"""Provides device automations for MQTT."""
|
||||
"""Provides device automations for Tasmota."""
|
||||
import logging
|
||||
from typing import Callable, List, Optional
|
||||
|
||||
|
@ -137,7 +137,7 @@ async def async_start(
|
||||
trigger_config,
|
||||
)
|
||||
elif trigger_config.is_active:
|
||||
_LOGGER.info("Adding new trigger: %s", discovery_hash)
|
||||
_LOGGER.debug("Adding new trigger: %s", discovery_hash)
|
||||
hass.data[ALREADY_DISCOVERED][discovery_hash] = None
|
||||
|
||||
tasmota_trigger = tasmota_get_trigger(trigger_config, tasmota_mqtt)
|
||||
|
@ -84,7 +84,7 @@ class TasmotaAvailability(TasmotaEntity):
|
||||
super().__init__(**kwds)
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Subscribe MQTT events."""
|
||||
"""Subscribe to MQTT events."""
|
||||
self._tasmota_entity.set_on_availability_callback(self.availability_updated)
|
||||
self.async_on_remove(
|
||||
async_subscribe_connection_status(self.hass, self.async_mqtt_connected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user