Skip to content

Commit

Permalink
fix: set default lock state to None
Browse files Browse the repository at this point in the history
If no information is available, the component can return None
  • Loading branch information
alandtse committed Jul 31, 2020
1 parent 1a1b0fe commit 7c44581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslajsonpy/homeassistant/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, data, controller):
"""
super().__init__(data, controller)
self.__manual_update_time = 0
self.__lock_state = False
self.__lock_state = None

self.type = "door lock"
self.hass_type = "lock"
Expand Down

0 comments on commit 7c44581

Please sign in to comment.