mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add SF transition to HmIP-BSL and remove obsolete code in HMIPC (#32833)
This commit is contained in:
parent
b6e69cd370
commit
2f80489428
@ -137,11 +137,6 @@ class HomematicipHAP:
|
|||||||
job = self.hass.async_create_task(self.get_state())
|
job = self.hass.async_create_task(self.get_state())
|
||||||
job.add_done_callback(self.get_state_finished)
|
job.add_done_callback(self.get_state_finished)
|
||||||
self._accesspoint_connected = True
|
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
|
@callback
|
||||||
def async_create_entity(self, *args, **kwargs) -> None:
|
def async_create_entity(self, *args, **kwargs) -> None:
|
||||||
|
@ -20,6 +20,7 @@ from homeassistant.components.light import (
|
|||||||
ATTR_TRANSITION,
|
ATTR_TRANSITION,
|
||||||
SUPPORT_BRIGHTNESS,
|
SUPPORT_BRIGHTNESS,
|
||||||
SUPPORT_COLOR,
|
SUPPORT_COLOR,
|
||||||
|
SUPPORT_TRANSITION,
|
||||||
Light,
|
Light,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
@ -197,7 +198,7 @@ class HomematicipNotificationLight(HomematicipGenericDevice, Light):
|
|||||||
@property
|
@property
|
||||||
def supported_features(self) -> int:
|
def supported_features(self) -> int:
|
||||||
"""Flag supported features."""
|
"""Flag supported features."""
|
||||||
return SUPPORT_BRIGHTNESS | SUPPORT_COLOR
|
return SUPPORT_BRIGHTNESS | SUPPORT_COLOR | SUPPORT_TRANSITION
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
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 = home.search_group_by_id(internal_zone_id)
|
||||||
internal_zone.active = internal_active
|
internal_zone.active = internal_active
|
||||||
|
|
||||||
home.from_json(json)
|
home.update_home_only(json)
|
||||||
home._get_functionalHomes(json)
|
|
||||||
home._load_functionalChannels()
|
|
||||||
home.fire_update_event(json)
|
home.fire_update_event(json)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user