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

This commit is contained in:
Jan-Philipp Benecke 2024-09-18 21:15:50 +02:00 committed by GitHub
parent 5075b8736e
commit 3f531c02a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View file

@ -108,6 +108,6 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.config_entries.async_update_entry(entry, version=2)
LOGGER.info("Migration to version %s successful", entry.version)
LOGGER.debug("Migration to version %s successful", entry.version)
return True

View file

@ -55,7 +55,7 @@ async def _configure_entities(hass, config, consumer):
switch_info = {}
for mac, device in devices.items():
_LOGGER.info("Device connected: %s %s", device.name, mac)
_LOGGER.debug("Device connected: %s %s", device.name, mac)
hass.data[DOMAIN][mac] = {}
for peripheral_id, peripheral in device.peripherals.items():

View file

@ -21,17 +21,17 @@ async def async_process_devices(hass, manager):
devices[VS_FANS].extend(manager.fans)
# Expose fan sensors separately
devices[VS_SENSORS].extend(manager.fans)
_LOGGER.info("%d VeSync fans found", len(manager.fans))
_LOGGER.debug("%d VeSync fans found", len(manager.fans))
if manager.bulbs:
devices[VS_LIGHTS].extend(manager.bulbs)
_LOGGER.info("%d VeSync lights found", len(manager.bulbs))
_LOGGER.debug("%d VeSync lights found", len(manager.bulbs))
if manager.outlets:
devices[VS_SWITCHES].extend(manager.outlets)
# Expose outlets' voltage, power & energy usage as separate sensors
devices[VS_SENSORS].extend(manager.outlets)
_LOGGER.info("%d VeSync outlets found", len(manager.outlets))
_LOGGER.debug("%d VeSync outlets found", len(manager.outlets))
if manager.switches:
for switch in manager.switches:
@ -39,6 +39,6 @@ async def async_process_devices(hass, manager):
devices[VS_SWITCHES].append(switch)
else:
devices[VS_LIGHTS].append(switch)
_LOGGER.info("%d VeSync switches found", len(manager.switches))
_LOGGER.debug("%d VeSync switches found", len(manager.switches))
return devices

View file

@ -105,5 +105,5 @@ class VilfoRouterData:
return
if self.available and self._unavailable_logged:
_LOGGER.info("Vilfo Router %s is available again", self.host)
_LOGGER.warning("Vilfo Router %s is available again", self.host)
self._unavailable_logged = False

View file

@ -200,7 +200,7 @@ class VizioDevice(MediaPlayerEntity):
return
if not self._attr_available:
_LOGGER.info(
_LOGGER.warning(
"Restored connection to %s", self._config_entry.data[CONF_HOST]
)
self._attr_available = True

View file

@ -131,7 +131,7 @@ class VlcDevice(MediaPlayerEntity):
self._attr_state = MediaPlayerState.IDLE
self._attr_available = True
LOGGER.info("Connected to vlc host: %s", self._vlc.host)
LOGGER.debug("Connected to vlc host: %s", self._vlc.host)
status = await self._vlc.status()
LOGGER.debug("Status: %s", status)

View file

@ -133,7 +133,7 @@ class VulcanCalendarEntity(CalendarEntity):
events = await get_lessons(self.client)
if not self.available:
_LOGGER.info("Restored connection with API")
_LOGGER.warning("Restored connection with API")
self._attr_available = True
if events == []: