Skip to content

Commit e430c8b

Browse files
committed
Update async_camera_image to new API signature for latest Home Assistant release
1 parent f1cf58f commit e430c8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

custom_components/dahua/camera.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,9 @@ def unique_id(self):
226226
"""Return the entity unique ID."""
227227
return self._unique_id
228228

229-
async def async_camera_image(self):
229+
async def async_camera_image(self, width: int, height: int):
230230
"""Return a still image response from the camera."""
231231
# Send the request to snap a picture and return raw jpg data
232-
channel = self._coordinator.get_channel()
233232
return await self._coordinator.client.async_get_snapshot(self._channel_number)
234233

235234
@property

0 commit comments

Comments
 (0)