Use debug/warning instead of info log level in components [e] (#125970)
parent
0221112879
commit
d070fd40a3
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue