File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -772,5 +772,7 @@ async def get_heater_state(self) -> SwitcherHeaterStateResponse:
772772 if response .successful :
773773 return response
774774 except (KeyError , ValueError ) as ve :
775- raise RuntimeError ("get heater state request was not successful" ) from ve
775+ raise RuntimeError (
776+ "get heater state request was not successful"
777+ ) from ve
776778 raise RuntimeError ("login request was not successful" )
Original file line number Diff line number Diff line change @@ -127,10 +127,7 @@ def _parse_device_from_datagram(
127127 )
128128 )
129129
130- elif (
131- device_type
132- and device_type .category == DeviceCategory .POWER_PLUG
133- ):
130+ elif device_type and device_type .category == DeviceCategory .POWER_PLUG :
134131 logger .debug ("discovered a power plug switcher device" )
135132 device_callback (
136133 SwitcherPowerPlug (
@@ -367,10 +364,7 @@ def _parse_device_from_datagram(
367364 )
368365 )
369366
370- elif (
371- device_type
372- and device_type .category == DeviceCategory .HEATER
373- ):
367+ elif device_type and device_type .category == DeviceCategory .HEATER :
374368 logger .debug ("discovered a heater switcher device" )
375369 device_callback (
376370 SwitcherHeater (
You can’t perform that action at this time.
0 commit comments