FutureTense / keymaster

Home Assistant integration for managing Z-Wave enabled locks
MIT License
231 stars 43 forks source link

ISSUE: TypeError: 'StateMachine' object is not subscriptable #246

Closed firstof9 closed 2 years ago

firstof9 commented 2 years ago

Describe the bug System Health not working properly

Environment (please complete the following information):

Logs

2021-10-29 09:31:35 ERROR (MainThread) [homeassistant.components.system_health] Error fetching info
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 68, in get_integration_info
    data = await registration.info_callback(hass)
  File "/config/custom_components/keymaster/system_health.py", line 22, in system_health_info
    "network_status": hass.states[
TypeError: 'StateMachine' object is not subscriptable

Screenshots n/a

Additional context n/a