I added a default value if the state value in the dictionary is for whatever reason not mappable to LockStates. This is exactly what is already done in binary_sensor.py:121
Note: This does not fix the underlying issue, as the value shouldn't be None at all, or is this intentional @kvj? Nevertheless I still think the mapping should be handled gracefully.
I added a default value if the state value in the dictionary is for whatever reason not mappable to LockStates. This is exactly what is already done in
binary_sensor.py:121
Note: This does not fix the underlying issue, as the value shouldn't be
None
at all, or is this intentional @kvj? Nevertheless I still think the mapping should be handled gracefully.