Bump pypck to 0.7.8 (#44834)

This commit is contained in:
Andre Lengwenus 2021-01-05 10:01:34 +01:00 committed by GitHub
parent 106252ea21
commit addafd517f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 36 additions and 20 deletions

View file

@ -57,7 +57,8 @@ 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()
await self.device_connection.activate_status_request_handler(self.variable)
if not self.device_connection.is_group:
await self.device_connection.activate_status_request_handler(self.variable)
@property
def state(self):
@ -98,7 +99,8 @@ 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()
await self.device_connection.activate_status_request_handler(self.source)
if not self.device_connection.is_group:
await self.device_connection.activate_status_request_handler(self.source)
@property
def state(self):