Skip to content

Commit

Permalink
Replace deprecated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
hmmbob authored Dec 31, 2023
1 parent 2475e84 commit e51945f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/xiaomi_cloud_map_extractor/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]:
Expand Down

0 comments on commit e51945f

Please sign in to comment.