Skip to content

Commit

Permalink
Merge pull request #502 from hmmbob/patch-1
Browse files Browse the repository at this point in the history
Replace deprecated constant for HA 2024.1
  • Loading branch information
PiotrMachowski authored Jan 3, 2025
2 parents 971ad74 + 30384d8 commit 7790ea6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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 @@ -16,7 +16,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 @@ -209,8 +209,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
10 changes: 5 additions & 5 deletions custom_components/xiaomi_cloud_map_extractor/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"domain": "xiaomi_cloud_map_extractor",
"name": "Xiaomi Cloud Map Extractor",
"documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor",
"issue_tracker": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues",
"dependencies": [],
"codeowners": [
"@PiotrMachowski"
],
"dependencies": [],
"documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues",
"requirements": [
"pillow",
"pybase64",
"python-miio",
"requests",
"pycryptodome"
],
"version": "v2.2.0",
"iot_class": "cloud_polling"
"version": "v2.2.0"
}

0 comments on commit 7790ea6

Please sign in to comment.