Adjust type hints for CameraEntityFeature (#82191)

This commit is contained in:
epenet 2022-11-16 14:44:08 +01:00 committed by GitHub
parent 4f7b583f19
commit 5d78632d04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -175,7 +175,7 @@ class ProtectCamera(ProtectDeviceEntity, Camera):
self._stream_source = ( # pylint: disable=attribute-defined-outside-init
None if disable_stream else rtsp_url
)
self._attr_supported_features: int = (
self._attr_supported_features = (
CameraEntityFeature.STREAM if self._stream_source else 0
)