joshjcarrier / homeassistant-litter-robot

The litter-robot component offers integration with the Litter-Robot WiFi enabled devices to Home Assistant.
82 stars 15 forks source link

add DFS status key, same at SDF #4

Closed wbradmoore closed 5 years ago

wbradmoore commented 5 years ago

fixes error:

Traceback (most recent call last):
   File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
     await entity.async_update_ha_state()
   File "/usr/src/app/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
     self._async_write_ha_state()
   File "/usr/src/app/homeassistant/helpers/entity.py", line 248, in _async_write_ha_state
     state = self.state
   File "/config/custom_components/litter_robot/sensor.py", line 74, in state
     return LITTER_ROBOT_UNIT_STATUS[unit_status]
 KeyError: 'DFS'

DFS key mentioned a few times here: https://community.smartthings.com/t/litter-robot-connect/106882/16

"SDF" mentioned once but haven't seen it myself. Typo? Or old change? 🤷

joshjcarrier commented 5 years ago

Hah, I bet SDF was a typo. Thanks for the PR!