Skip to content

Commit d1ee6df

Browse files
committed
black formatting
1 parent b505cae commit d1ee6df

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

custom_components/homeduino/binary_sensor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ def _handle_coordinator_update(self) -> None:
225225
if not self.coordinator.data:
226226
return
227227

228-
if self.coordinator.data.get("protocol") != self.entity_description.protocol:
228+
if (
229+
self.coordinator.data.get("protocol")
230+
!= self.entity_description.protocol
231+
):
229232
return
230233

231234
if (

custom_components/homeduino/light.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ async def async_setup_entry(
5353
elif entry_type == CONF_ENTRY_TYPE_RF_DEVICE and config_entry.data.get(
5454
CONF_RF_PROTOCOL
5555
).startswith("dimmer"):
56-
5756
protocol = config_entry.data.get(CONF_RF_PROTOCOL)
5857
id = int(config_entry.data.get(CONF_RF_ID))
5958
unit = config_entry.data.get(CONF_RF_UNIT)
@@ -169,7 +168,10 @@ def _handle_coordinator_update(self) -> None:
169168
if not self.coordinator.data:
170169
return
171170

172-
if self.coordinator.data.get("protocol") not in self.entity_description.protocols:
171+
if (
172+
self.coordinator.data.get("protocol")
173+
not in self.entity_description.protocols
174+
):
173175
return
174176

175177
if (

custom_components/homeduino/sensor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,10 @@ def _handle_coordinator_update(self) -> None:
405405
if not self.coordinator.data:
406406
return
407407

408-
if self.coordinator.data.get("protocol") != self.entity_description.protocol:
408+
if (
409+
self.coordinator.data.get("protocol")
410+
!= self.entity_description.protocol
411+
):
409412
return
410413

411414
values = self.coordinator.data.get("values", {})

0 commit comments

Comments
 (0)