Change camera_image to include a width and height (#316)

This commit is contained in:
maretodoric
2022-04-18 20:52:21 +02:00
committed by GitHub
parent 122c9df959
commit 0fc3febb5e

View File

@@ -33,7 +33,7 @@ class BrowserModCamera(Camera, BrowserModEntity):
self.last_seen = datetime.now()
self.schedule_update_ha_state()
def camera_image(self):
def camera_image(self, width=None, height=None):
return base64.b64decode(self.data.split(",")[-1])
@property