mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Use debug/warning instead of info log level in components [e] (#125970)
This commit is contained in:
parent
0221112879
commit
d070fd40a3
@ -673,7 +673,7 @@ class Thermostat(ClimateEntity):
|
|||||||
holdHours=self.hold_hours(),
|
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):
|
def set_temp_hold(self, temp):
|
||||||
"""Set temperature hold in modes other than auto.
|
"""Set temperature hold in modes other than auto.
|
||||||
|
@ -79,12 +79,12 @@ def setup_platform(
|
|||||||
|
|
||||||
def monitor_stop(event: Event) -> None:
|
def monitor_stop(event: Event) -> None:
|
||||||
"""Stop the monitor thread."""
|
"""Stop the monitor thread."""
|
||||||
_LOGGER.info("Stopping scanner for Eddystone beacons")
|
_LOGGER.debug("Stopping scanner for Eddystone beacons")
|
||||||
mon.stop()
|
mon.stop()
|
||||||
|
|
||||||
def monitor_start(event: Event) -> None:
|
def monitor_start(event: Event) -> None:
|
||||||
"""Start the monitor thread."""
|
"""Start the monitor thread."""
|
||||||
_LOGGER.info("Starting scanner for Eddystone beacons")
|
_LOGGER.debug("Starting scanner for Eddystone beacons")
|
||||||
mon.start()
|
mon.start()
|
||||||
|
|
||||||
add_entities(devices)
|
add_entities(devices)
|
||||||
|
@ -182,4 +182,4 @@ class EfergySensor(EfergyEntity, SensorEntity):
|
|||||||
return
|
return
|
||||||
if not self._attr_available:
|
if not self._attr_available:
|
||||||
self._attr_available = True
|
self._attr_available = True
|
||||||
LOGGER.info("Connection has resumed")
|
LOGGER.debug("Connection has resumed")
|
||||||
|
@ -203,7 +203,7 @@ class ElectraClimateEntity(ClimateEntity):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if not self._was_available:
|
if not self._was_available:
|
||||||
_LOGGER.info(
|
_LOGGER.debug(
|
||||||
"%s (%s) is now available",
|
"%s (%s) is now available",
|
||||||
self._electra_ac_device.mac,
|
self._electra_ac_device.mac,
|
||||||
self.name,
|
self.name,
|
||||||
|
@ -160,7 +160,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
@callback
|
@callback
|
||||||
def async_connection_success_callback(data):
|
def async_connection_success_callback(data):
|
||||||
"""Handle a successful connection."""
|
"""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():
|
if not sync_connect.done():
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_envisalink)
|
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_envisalink)
|
||||||
sync_connect.set_result(True)
|
sync_connect.set_result(True)
|
||||||
@ -186,7 +186,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
@callback
|
@callback
|
||||||
def stop_envisalink(event):
|
def stop_envisalink(event):
|
||||||
"""Shutdown envisalink connection and thread on exit."""
|
"""Shutdown envisalink connection and thread on exit."""
|
||||||
_LOGGER.info("Shutting down Envisalink")
|
_LOGGER.debug("Shutting down Envisalink")
|
||||||
controller.stop()
|
controller.stop()
|
||||||
|
|
||||||
async def handle_custom_function(call: ServiceCall) -> None:
|
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_timeout = async_connection_fail_callback
|
||||||
controller.callback_login_success = async_connection_success_callback
|
controller.callback_login_success = async_connection_success_callback
|
||||||
|
|
||||||
_LOGGER.info("Start envisalink")
|
_LOGGER.debug("Start envisalink")
|
||||||
controller.start()
|
controller.start()
|
||||||
|
|
||||||
if not await sync_connect:
|
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]:
|
if sensor_type == ATTR_TYPE_CAMERA and hass.data[DOMAIN]:
|
||||||
for item in hass.config_entries.async_entries(domain=DOMAIN):
|
for item in hass.config_entries.async_entries(domain=DOMAIN):
|
||||||
if item.data.get(CONF_TYPE) == ATTR_TYPE_CLOUD:
|
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)
|
await hass.config_entries.async_reload(item.entry_id)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user