Skip to content
This repository was archived by the owner on May 26, 2024. It is now read-only.

Commit 37d5c9f

Browse files
authored
Merge pull request #56 from patrickhilker/dev-cloud
Dev cloud
2 parents 4282d24 + 18d6ab8 commit 37d5c9f

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

custom_components/tedee/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from homeassistant.config_entries import ConfigEntry
44
from homeassistant.const import CONF_ACCESS_TOKEN
55
from homeassistant.core import HomeAssistant
6+
from homeassistant.helpers.device_registry import DeviceEntry
67
from pytedee_async import TedeeClient
78

89
from .const import DOMAIN
@@ -49,7 +50,11 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):
4950

5051
if unload_ok:
5152
hass.data[DOMAIN].pop(entry.entry_id)
52-
hass.data[DOMAIN] = {}
5353

5454
return unload_ok
55-
55+
56+
async def async_remove_config_entry_device(
57+
hass: HomeAssistant, config_entry: ConfigEntry, device_entry: DeviceEntry
58+
) -> bool:
59+
"""Remove a config entry from a device."""
60+
return True

custom_components/tedee/lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22

3-
from homeassistant.components.lock import SUPPORT_OPEN, LockEntity
3+
from homeassistant.components.lock import LockEntity, LockEntityFeature
44
from homeassistant.const import (ATTR_BATTERY_CHARGING, ATTR_BATTERY_LEVEL,
55
ATTR_ID)
66
from homeassistant.core import callback
@@ -127,7 +127,7 @@ def __init__(self, lock, coordinator, entry):
127127

128128
@property
129129
def supported_features(self):
130-
return SUPPORT_OPEN
130+
return LockEntityFeature.OPEN
131131

132132

133133
async def async_unlock(self, **kwargs):

custom_components/tedee/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": [],
77
"codeowners": ["@patrickhilker", "@joerg65", "@zweckj"],
88
"requirements": ["pytedee-async==0.1.4"],
9-
"version": "2023.7.4",
9+
"version": "2024.1.1",
1010
"config_flow": true,
1111
"iot_class": "cloud_polling"
1212
}

0 commit comments

Comments
 (0)