Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PyMyGekko/resources/Cams.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def update_resources(self, resources):
if key not in self._data:
self._data[key] = {}
self._data[key]["name"] = cams[key]["name"]
self._data[key]["imagepath"] = cams[key]["imagepath"]
self._data[key]["streampath"] = cams[key]["streampath"]
self._data[key]["imagepath"] = cams[key].get("imagepath", None)
self._data[key]["streampath"] = cams[key].get("streampath", None)

@property
def cams(self):
Expand Down
2 changes: 1 addition & 1 deletion PyMyGekko/resources/DoorInterComs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class DoorInterComConnectionState(IntEnum):
ERROR_FAV_CHECK = -3
ERROR_PROVISIONING = -2
ERROR_CONNECTION = -1
NOT_SET_UP = (0,)
NOT_SET_UP = 0
OK = 1


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from aiohttp import web
from PyMyGekko import MyGekkoApiClientBase
from PyMyGekko.resources.DoorInterComs import DoorInterComConnectionState
from PyMyGekko.resources.DoorInterComs import DoorInterComSoundMode

_LOGGER: logging.Logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -63,3 +64,4 @@ async def test_get_door_inter_coms(mock_server):
assert door_inter_coms[0].connection_state == DoorInterComConnectionState.OK
assert door_inter_coms[0].last_missed_call_date is None
assert door_inter_coms[0].missed_calls == 0
assert door_inter_coms[0].sound_mode == DoorInterComSoundMode.RINGING