diff --git a/custom_components/xiaomi_cloud_map_extractor/camera.py b/custom_components/xiaomi_cloud_map_extractor/camera.py index 0568631..9f13a46 100644 --- a/custom_components/xiaomi_cloud_map_extractor/camera.py +++ b/custom_components/xiaomi_cloud_map_extractor/camera.py @@ -15,7 +15,7 @@ from miio import Vacuum as RoborockVacuum, DeviceException import PIL.Image as Image import voluptuous as vol -from homeassistant.components.camera import Camera, ENTITY_ID_FORMAT, PLATFORM_SCHEMA, SUPPORT_ON_OFF +from homeassistant.components.camera import Camera, CameraEntityFeature, ENTITY_ID_FORMAT, PLATFORM_SCHEMA from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_TOKEN, CONF_USERNAME from homeassistant.helpers import config_validation as cv from homeassistant.helpers.entity import generate_entity_id @@ -205,8 +205,8 @@ def turn_off(self): self._should_poll = False @property - def supported_features(self) -> int: - return SUPPORT_ON_OFF + def supported_features(self): + return CameraEntityFeature.ON_OFF @property def extra_state_attributes(self) -> Dict[str, Any]: