Ignore logging for some components

I’m using a xiaomi_miio component with philips table lamp. It constantly give me errors in log although works fine.
And as this is ERROR level - looking at the docs all i can see - go to CRITICAL but then i’ll miss errors from other components

ERROR (Thread-3) [miio.device] Unable to discover a device at address 172.16.5.93
ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 172.16.5.93

From the logger docs:

To log all messages and ignore events lower than critical for specified components.

# Example configuration.yaml entry
logger:
  default: info
  logs:
    homeassistant.components.device_tracker: critical
    homeassistant.components.camera: critical
1 Like