Add SF transition to HmIP-BSL and remove obsolete code in HMIPC (#32833)
parent
b6e69cd370
commit
2f80489428
|
@ -137,11 +137,6 @@ class HomematicipHAP:
|
|||
job = self.hass.async_create_task(self.get_state())
|
||||
job.add_done_callback(self.get_state_finished)
|
||||
self._accesspoint_connected = True
|
||||
else:
|
||||
# Update home with the given json from arg[0],
|
||||
# without devices and groups.
|
||||
|
||||
self.home.update_home_only(args[0])
|
||||
|
||||
@callback
|
||||
def async_create_entity(self, *args, **kwargs) -> None:
|
||||
|
|
|
@ -20,6 +20,7 @@ from homeassistant.components.light import (
|
|||
ATTR_TRANSITION,
|
||||
SUPPORT_BRIGHTNESS,
|
||||
SUPPORT_COLOR,
|
||||
SUPPORT_TRANSITION,
|
||||
Light,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
@ -197,7 +198,7 @@ class HomematicipNotificationLight(HomematicipGenericDevice, Light):
|
|||
@property
|
||||
def supported_features(self) -> int:
|
||||
"""Flag supported features."""
|
||||
return SUPPORT_BRIGHTNESS | SUPPORT_COLOR
|
||||
return SUPPORT_BRIGHTNESS | SUPPORT_COLOR | SUPPORT_TRANSITION
|
||||
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
|
|
|
@ -31,9 +31,7 @@ async def _async_manipulate_security_zones(
|
|||
internal_zone = home.search_group_by_id(internal_zone_id)
|
||||
internal_zone.active = internal_active
|
||||
|
||||
home.from_json(json)
|
||||
home._get_functionalHomes(json)
|
||||
home._load_functionalChannels()
|
||||
home.update_home_only(json)
|
||||
home.fire_update_event(json)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
|
Loading…
Reference in New Issue