Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing async_camera_image signature & using extra_state_attributes #2

Merged
merged 1 commit into from
Apr 10, 2022

Conversation

kevin-david
Copy link
Owner

Fixes marthoc#39 and marthoc#40

Found changes on blakeblackshear/frigate-hass-integration#145 and JurajNyiri/HomeAssistant-Tapo-Control#125

Not tested yet, need to install via HACS.

@kevin-david
Copy link
Owner Author

Note: this is the actual fix: 77163ec [I force-pushed to clean it up]

@@ -118,7 +118,7 @@ async def async_added_to_hass(self):
def _ready_for_snapshot(self, now):
return self._next_snapshot_at is None or now > self._next_snapshot_at

async def async_camera_image(self):
async def async_camera_image(self, width: int | None = None, height: int | None = None):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This signature didn't work, this one does instead: 77163ec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logged warning about implements device_state_attributes
1 participant