Fix Tasmota stale docstring + print level (#41992)

This commit is contained in:
Erik Montnemery 2020-10-17 13:07:21 +02:00 committed by GitHub
parent 30b454ddb7
commit 49b7f317ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
"""Provides device automations for MQTT."""
"""Provides device automations for Tasmota."""
import logging
from typing import Callable, List, Optional

View File

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

View File

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