|
发表于 2018-9-29 19:53:59
|
显示全部楼层
报错啊。。楼主
2018-09-29 19:53:12 ERROR (Thread-22) [custom_components.sensor.aircat] Exception: Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/sensor/aircat.py", line 51, in update
self.handle(fd)
File "/home/homeassistant/.homeassistant/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'
2018-09-29 19:53:13 ERROR (Thread-22) [custom_components.sensor.aircat] Exception: Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/sensor/aircat.py", line 51, in update
self.handle(fd)
File "/home/homeassistant/.homeassistant/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' |
|