Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated constant for HA 2024.1 #502

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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"
}