Skip to content

Commit

Permalink
Check for none and empty dict
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmer committed Nov 3, 2023
1 parent 128854d commit 4beb976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blinkpy/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async def set_motion_detect(self, enable):

async def update(self, config, force_cache=False, expire_clips=True, **kwargs):
"""Update camera info."""
if config != {}:
if bool(config):
self.extract_config_info(config)
await self.get_sensor_info()
await self.update_images(
Expand Down

0 comments on commit 4beb976

Please sign in to comment.