Skip to content

Commit 57d119a

Browse files
committed
Revert "Bump pypck to 0.7.8" (home-assistant#44884)
This reverts commit addafd5.
1 parent 9c478e8 commit 57d119a

File tree

9 files changed

+20
-36
lines changed

9 files changed

+20
-36
lines changed

homeassistant/components/lcn/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ def should_poll(self):
139139

140140
async def async_added_to_hass(self):
141141
"""Run when entity about to be added to hass."""
142-
if not self.device_connection.is_group:
143-
self.device_connection.register_for_inputs(self.input_received)
142+
self.device_connection.register_for_inputs(self.input_received)
144143

145144
@property
146145
def name(self):

homeassistant/components/lcn/binary_sensor.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ def __init__(self, config, device_connection):
5050
async def async_added_to_hass(self):
5151
"""Run when entity about to be added to hass."""
5252
await super().async_added_to_hass()
53-
if not self.device_connection.is_group:
54-
await self.device_connection.activate_status_request_handler(
55-
self.setpoint_variable
56-
)
53+
await self.device_connection.activate_status_request_handler(
54+
self.setpoint_variable
55+
)
5756

5857
@property
5958
def is_on(self):
@@ -86,10 +85,9 @@ def __init__(self, config, device_connection):
8685
async def async_added_to_hass(self):
8786
"""Run when entity about to be added to hass."""
8887
await super().async_added_to_hass()
89-
if not self.device_connection.is_group:
90-
await self.device_connection.activate_status_request_handler(
91-
self.bin_sensor_port
92-
)
88+
await self.device_connection.activate_status_request_handler(
89+
self.bin_sensor_port
90+
)
9391

9492
@property
9593
def is_on(self):
@@ -118,8 +116,7 @@ def __init__(self, config, device_connection):
118116
async def async_added_to_hass(self):
119117
"""Run when entity about to be added to hass."""
120118
await super().async_added_to_hass()
121-
if not self.device_connection.is_group:
122-
await self.device_connection.activate_status_request_handler(self.source)
119+
await self.device_connection.activate_status_request_handler(self.source)
123120

124121
@property
125122
def is_on(self):

homeassistant/components/lcn/climate.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ def __init__(self, config, device_connection):
6363
async def async_added_to_hass(self):
6464
"""Run when entity about to be added to hass."""
6565
await super().async_added_to_hass()
66-
if not self.device_connection.is_group:
67-
await self.device_connection.activate_status_request_handler(self.variable)
68-
await self.device_connection.activate_status_request_handler(self.setpoint)
66+
await self.device_connection.activate_status_request_handler(self.variable)
67+
await self.device_connection.activate_status_request_handler(self.setpoint)
6968

7069
@property
7170
def supported_features(self):

homeassistant/components/lcn/cover.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ def __init__(self, config, device_connection):
161161
async def async_added_to_hass(self):
162162
"""Run when entity about to be added to hass."""
163163
await super().async_added_to_hass()
164-
if not self.device_connection.is_group:
165-
await self.device_connection.activate_status_request_handler(self.motor)
164+
await self.device_connection.activate_status_request_handler(self.motor)
166165

167166
@property
168167
def is_closed(self):

homeassistant/components/lcn/light.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def __init__(self, config, device_connection):
6868
async def async_added_to_hass(self):
6969
"""Run when entity about to be added to hass."""
7070
await super().async_added_to_hass()
71-
if not self.device_connection.is_group:
72-
await self.device_connection.activate_status_request_handler(self.output)
71+
await self.device_connection.activate_status_request_handler(self.output)
7372

7473
@property
7574
def supported_features(self):
@@ -156,8 +155,7 @@ def __init__(self, config, device_connection):
156155
async def async_added_to_hass(self):
157156
"""Run when entity about to be added to hass."""
158157
await super().async_added_to_hass()
159-
if not self.device_connection.is_group:
160-
await self.device_connection.activate_status_request_handler(self.output)
158+
await self.device_connection.activate_status_request_handler(self.output)
161159

162160
@property
163161
def is_on(self):

homeassistant/components/lcn/manifest.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
"domain": "lcn",
33
"name": "LCN",
44
"documentation": "https://www.home-assistant.io/integrations/lcn",
5-
"requirements": [
6-
"pypck==0.7.8"
7-
],
8-
"codeowners": [
9-
"@alengwenus"
10-
]
5+
"requirements": ["pypck==0.7.7"],
6+
"codeowners": ["@alengwenus"]
117
}

homeassistant/components/lcn/sensor.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ def __init__(self, config, device_connection):
5757
async def async_added_to_hass(self):
5858
"""Run when entity about to be added to hass."""
5959
await super().async_added_to_hass()
60-
if not self.device_connection.is_group:
61-
await self.device_connection.activate_status_request_handler(self.variable)
60+
await self.device_connection.activate_status_request_handler(self.variable)
6261

6362
@property
6463
def state(self):
@@ -99,8 +98,7 @@ def __init__(self, config, device_connection):
9998
async def async_added_to_hass(self):
10099
"""Run when entity about to be added to hass."""
101100
await super().async_added_to_hass()
102-
if not self.device_connection.is_group:
103-
await self.device_connection.activate_status_request_handler(self.source)
101+
await self.device_connection.activate_status_request_handler(self.source)
104102

105103
@property
106104
def state(self):

homeassistant/components/lcn/switch.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ def __init__(self, config, device_connection):
5050
async def async_added_to_hass(self):
5151
"""Run when entity about to be added to hass."""
5252
await super().async_added_to_hass()
53-
if not self.device_connection.is_group:
54-
await self.device_connection.activate_status_request_handler(self.output)
53+
await self.device_connection.activate_status_request_handler(self.output)
5554

5655
@property
5756
def is_on(self):
@@ -98,8 +97,7 @@ def __init__(self, config, device_connection):
9897
async def async_added_to_hass(self):
9998
"""Run when entity about to be added to hass."""
10099
await super().async_added_to_hass()
101-
if not self.device_connection.is_group:
102-
await self.device_connection.activate_status_request_handler(self.output)
100+
await self.device_connection.activate_status_request_handler(self.output)
103101

104102
@property
105103
def is_on(self):

requirements_all.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ pyownet==0.10.0.post1
16041604
pypca==0.0.7
16051605

16061606
# homeassistant.components.lcn
1607-
pypck==0.7.8
1607+
pypck==0.7.7
16081608

16091609
# homeassistant.components.pjlink
16101610
pypjlink2==1.2.1

0 commit comments

Comments
 (0)