Add SF transition to HmIP-BSL and remove obsolete code in HMIPC (#32833)

pull/32852/head
SukramJ 2020-03-15 19:01:50 +01:00 committed by GitHub
parent b6e69cd370
commit 2f80489428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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()