Skip to content

Commit 0279f99

Browse files
committed
CRAI suggestion
1 parent a3f4e32 commit 0279f99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise/helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,10 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch
221221
case "heater_central":
222222
# Collect heater_central entity info
223223
# 251016: the added guarding below also solves Core Issue #104433
224-
if not self._appl_heater_central_info(
225-
appl, appliance, False
224+
if not (
225+
appl := self._appl_heater_central_info(
226+
appl, appliance, False
227+
)
226228
): # False means non-legacy entity
227229
return Munch()
228230
self._dhw_allowed_modes = self._get_appl_actuator_modes(

0 commit comments

Comments
 (0)