Hello, I can't turn on or off the switch via humidifier entity. There is the log if home assistant:
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/switch_humidifier/humidifier.py", line 208, in _state_changed
if not new_state is None and not new_state.state == 'unknown' and not new_state.state == 'unavailable' and not old_state.state == new_state.state:
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'state'
Hello, I can't turn on or off the switch via humidifier entity. There is the log if home assistant:
There is my config code:
Can you help me, please? Thanks!