From 49b7f317ff77f8acba6e80f918e171fb95b2f8b6 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 17 Oct 2020 13:07:21 +0200 Subject: [PATCH] Fix Tasmota stale docstring + print level (#41992) --- homeassistant/components/tasmota/device_trigger.py | 2 +- homeassistant/components/tasmota/discovery.py | 2 +- homeassistant/components/tasmota/mixins.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/tasmota/device_trigger.py b/homeassistant/components/tasmota/device_trigger.py index e637b7dc879..9db7ca492af 100644 --- a/homeassistant/components/tasmota/device_trigger.py +++ b/homeassistant/components/tasmota/device_trigger.py @@ -1,4 +1,4 @@ -"""Provides device automations for MQTT.""" +"""Provides device automations for Tasmota.""" import logging from typing import Callable, List, Optional diff --git a/homeassistant/components/tasmota/discovery.py b/homeassistant/components/tasmota/discovery.py index 09fbeff7d13..7773cacd42f 100644 --- a/homeassistant/components/tasmota/discovery.py +++ b/homeassistant/components/tasmota/discovery.py @@ -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) diff --git a/homeassistant/components/tasmota/mixins.py b/homeassistant/components/tasmota/mixins.py index e3ca2a1949d..13e511e4a8f 100644 --- a/homeassistant/components/tasmota/mixins.py +++ b/homeassistant/components/tasmota/mixins.py @@ -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)