Revert "Revert "Bump pypck to 0.7.8"" (#44885)
This reverts commit 6de8824980
.
This commit is contained in:
parent
1a44a8a714
commit
92431049e5
9 changed files with 36 additions and 20 deletions
|
@ -139,6 +139,7 @@ class LcnEntity(Entity):
|
|||
|
||||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
if not self.device_connection.is_group:
|
||||
self.device_connection.register_for_inputs(self.input_received)
|
||||
|
||||
@property
|
||||
|
|
|
@ -50,6 +50,7 @@ class LcnRegulatorLockSensor(LcnEntity, BinarySensorEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(
|
||||
self.setpoint_variable
|
||||
)
|
||||
|
@ -85,6 +86,7 @@ class LcnBinarySensor(LcnEntity, BinarySensorEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(
|
||||
self.bin_sensor_port
|
||||
)
|
||||
|
@ -116,6 +118,7 @@ class LcnLockKeysSensor(LcnEntity, BinarySensorEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.source)
|
||||
|
||||
@property
|
||||
|
|
|
@ -63,6 +63,7 @@ class LcnClimate(LcnEntity, ClimateEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.variable)
|
||||
await self.device_connection.activate_status_request_handler(self.setpoint)
|
||||
|
||||
|
|
|
@ -161,6 +161,7 @@ class LcnRelayCover(LcnEntity, CoverEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.motor)
|
||||
|
||||
@property
|
||||
|
|
|
@ -68,6 +68,7 @@ class LcnOutputLight(LcnEntity, LightEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.output)
|
||||
|
||||
@property
|
||||
|
@ -155,6 +156,7 @@ class LcnRelayLight(LcnEntity, LightEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.output)
|
||||
|
||||
@property
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
"domain": "lcn",
|
||||
"name": "LCN",
|
||||
"documentation": "https://www.home-assistant.io/integrations/lcn",
|
||||
"requirements": ["pypck==0.7.7"],
|
||||
"codeowners": ["@alengwenus"]
|
||||
"requirements": [
|
||||
"pypck==0.7.8"
|
||||
],
|
||||
"codeowners": [
|
||||
"@alengwenus"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ class LcnVariableSensor(LcnEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.variable)
|
||||
|
||||
@property
|
||||
|
@ -98,6 +99,7 @@ class LcnLedLogicSensor(LcnEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.source)
|
||||
|
||||
@property
|
||||
|
|
|
@ -50,6 +50,7 @@ class LcnOutputSwitch(LcnEntity, SwitchEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.output)
|
||||
|
||||
@property
|
||||
|
@ -97,6 +98,7 @@ class LcnRelaySwitch(LcnEntity, SwitchEntity):
|
|||
async def async_added_to_hass(self):
|
||||
"""Run when entity about to be added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
if not self.device_connection.is_group:
|
||||
await self.device_connection.activate_status_request_handler(self.output)
|
||||
|
||||
@property
|
||||
|
|
|
@ -1607,7 +1607,7 @@ pyownet==0.10.0.post1
|
|||
pypca==0.0.7
|
||||
|
||||
# homeassistant.components.lcn
|
||||
pypck==0.7.7
|
||||
pypck==0.7.8
|
||||
|
||||
# homeassistant.components.pjlink
|
||||
pypjlink2==1.2.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue