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

This commit is contained in:
maretodoric authored and GitHub committed 2022-04-18 20:52:21 +02:00
1 parent 122c9df959
commit 0fc3febb5e
1 file changed
+1 -1
+1 -1
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