mnordseth / enet-homeassistant

Enet Smart Home integration for Home Assistant
Apache License 2.0
28 stars 7 forks source link

Crashing on init #3

Closed fierland closed 1 year ago

fierland commented 1 year ago

Found that changing line in the Actuator class fixed it, it crashed when adding a disabled channel to a actuator.

from if device_channel["channelTypeID"] != "CT_DEVICE": to if device_channel["channelTypeID"] not in ( "CT_DEVICE", "CT_DISABLED"):

mnordseth commented 1 year ago

Thank you for the notice, I have adopted the fix.