用了一天好好地,重启突然蹦出来这个
Exception: Traceback (most recent call last):
File "/config/custom_components/sensor/aircat.py", line 51, in update
self.handle(fd)
File "/config/custom_components/sensor/aircat.py", line 94, in handle
_LOGGER.debug('brightness %s: last %s', self._hass.states.get("input_select." + self._macs.get(mac)).state, self._last_brightness.get(mac))
AttributeError: 'NoneType' object has no attribute 'state'