File tree Expand file tree Collapse file tree
custom_components/homeduino Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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" , {})
You can’t perform that action at this time.
0 commit comments