Hi!
I am trying to filter some errors from the logger and I don’t know how to do this.
It is about a custom component installed through HACS, named “Midea Smart Aircon”
These two kind of erros are in the log and I want to hide them:
Logger: msmart.lan
Source: /usr/local/lib/python3.11/site-packages/msmart/lan.py:61
First occurred: 18:38:11 (12 occurrences)
Last logged: 18:39:27
Sokcet is None: 192.168.0.213:6444
Sokcet is None: 192.168.0.212:6444
or from the full log
2023-07-24 18:41:27.715 ERROR (SyncWorker_3) [msmart.lan] Connect Error: 192.168.0.213:6444 timed out
2023-07-24 18:41:27.716 ERROR (SyncWorker_0) [msmart.lan] Connect Error: 192.168.0.212:6444 timed out
2023-07-24 18:41:27.716 ERROR (SyncWorker_3) [msmart.lan] Sokcet is None: 192.168.0.213:6444
2023-07-24 18:41:27.718 ERROR (SyncWorker_0) [msmart.lan] Sokcet is None: 192.168.0.212:6444
This is what I have tried till now, but no success:
logger:
filters:
custom_components.msmart.lan:
- "Sokcet is None"
- "Connect Error"
and
logger:
filters:
custom_components.midea_ac:
- "Sokcet is None"
- "Connect Error"
Anyone with a good idea?
Thank you in advance!