From d56f6f39c1bf7038747aa3b656fc0ddeca6d7d25 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 18:01:19 +0200 Subject: [PATCH] Use EntityFeature enums in mobile_app (#69592) --- homeassistant/components/mobile_app/webhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/mobile_app/webhook.py b/homeassistant/components/mobile_app/webhook.py index eb93aba59cb..f0c7c628976 100644 --- a/homeassistant/components/mobile_app/webhook.py +++ b/homeassistant/components/mobile_app/webhook.py @@ -15,7 +15,7 @@ from homeassistant.components import camera, cloud, notify as hass_notify, tag from homeassistant.components.binary_sensor import ( DEVICE_CLASSES as BINARY_SENSOR_CLASSES, ) -from homeassistant.components.camera import SUPPORT_STREAM as CAMERA_SUPPORT_STREAM +from homeassistant.components.camera import CameraEntityFeature from homeassistant.components.device_tracker import ( ATTR_BATTERY, ATTR_GPS, @@ -297,7 +297,7 @@ async def webhook_stream_camera(hass, config_entry, data): resp = {"mjpeg_path": f"/api/camera_proxy_stream/{camera_state.entity_id}"} - if camera_state.attributes[ATTR_SUPPORTED_FEATURES] & CAMERA_SUPPORT_STREAM: + if camera_state.attributes[ATTR_SUPPORTED_FEATURES] & CameraEntityFeature.STREAM: try: resp["hls_path"] = await camera.async_request_stream( hass, camera_state.entity_id, "hls"