Use debug/warning instead of info log level in components [e] (#125970)

pull/125981/head
Jan-Philipp Benecke 2024-09-14 23:41:06 +02:00 committed by GitHub
parent 0221112879
commit d070fd40a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View File

@ -673,7 +673,7 @@ class Thermostat(ClimateEntity):
holdHours=self.hold_hours(),
)
_LOGGER.info("Setting fan mode to: %s", fan_mode)
_LOGGER.debug("Setting fan mode to: %s", fan_mode)
def set_temp_hold(self, temp):
"""Set temperature hold in modes other than auto.

View File

@ -79,12 +79,12 @@ def setup_platform(
def monitor_stop(event: Event) -> None:
"""Stop the monitor thread."""
_LOGGER.info("Stopping scanner for Eddystone beacons")
_LOGGER.debug("Stopping scanner for Eddystone beacons")
mon.stop()
def monitor_start(event: Event) -> None:
"""Start the monitor thread."""
_LOGGER.info("Starting scanner for Eddystone beacons")
_LOGGER.debug("Starting scanner for Eddystone beacons")
mon.start()
add_entities(devices)

View File

@ -182,4 +182,4 @@ class EfergySensor(EfergyEntity, SensorEntity):
return
if not self._attr_available:
self._attr_available = True
LOGGER.info("Connection has resumed")
LOGGER.debug("Connection has resumed")

View File

@ -203,7 +203,7 @@ class ElectraClimateEntity(ClimateEntity):
return
if not self._was_available:
_LOGGER.info(
_LOGGER.debug(
"%s (%s) is now available",
self._electra_ac_device.mac,
self.name,

View File

@ -160,7 +160,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
@callback
def async_connection_success_callback(data):
"""Handle a successful connection."""
_LOGGER.info("Established a connection with the Envisalink")
_LOGGER.debug("Established a connection with the Envisalink")
if not sync_connect.done():
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_envisalink)
sync_connect.set_result(True)
@ -186,7 +186,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
@callback
def stop_envisalink(event):
"""Shutdown envisalink connection and thread on exit."""
_LOGGER.info("Shutting down Envisalink")
_LOGGER.debug("Shutting down Envisalink")
controller.stop()
async def handle_custom_function(call: ServiceCall) -> None:
@ -203,7 +203,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
controller.callback_login_timeout = async_connection_fail_callback
controller.callback_login_success = async_connection_success_callback
_LOGGER.info("Start envisalink")
_LOGGER.debug("Start envisalink")
controller.start()
if not await sync_connect:

View File

@ -105,7 +105,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if sensor_type == ATTR_TYPE_CAMERA and hass.data[DOMAIN]:
for item in hass.config_entries.async_entries(domain=DOMAIN):
if item.data.get(CONF_TYPE) == ATTR_TYPE_CLOUD:
_LOGGER.info("Reload Ezviz main account with camera entry")
_LOGGER.debug("Reload Ezviz main account with camera entry")
await hass.config_entries.async_reload(item.entry_id)
return True