File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed
custom_components/plugwise Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,7 @@ def _add_entities() -> None:
110110 for description in PLUGWISE_BINARY_SENSORS :
111111 if description .key not in binary_sensors :
112112 continue
113- entities .append (
114- PlugwiseBinarySensorEntity (
115- coordinator ,
116- device_id ,
117- description ,
118- )
119- )
113+ entities .append (PlugwiseBinarySensorEntity (coordinator , device_id , description ))
120114 LOGGER .debug (
121115 "Add %s %s binary sensor" , device [ATTR_NAME ], description .translation_key
122116 )
Original file line number Diff line number Diff line change @@ -46,13 +46,7 @@ def _add_entities() -> None:
4646 device = coordinator .data .devices [device_id ]
4747 if device_id == gateway [GATEWAY_ID ] and REBOOT in gateway :
4848 for description in BUTTON_TYPES :
49- entities .append (
50- PlugwiseButtonEntity (
51- coordinator ,
52- device_id ,
53- description ,
54- )
55- )
49+ entities .append (PlugwiseButtonEntity (coordinator , device_id , description ))
5650 LOGGER .debug (
5751 "Add %s %s button" , device [ATTR_NAME ], description .key
5852 )
Original file line number Diff line number Diff line change @@ -475,13 +475,7 @@ def _add_entities() -> None:
475475 for description in PLUGWISE_SENSORS :
476476 if description .key not in sensors :
477477 continue
478- entities .append (
479- PlugwiseSensorEntity (
480- coordinator ,
481- device_id ,
482- description ,
483- )
484- )
478+ entities .append (PlugwiseSensorEntity (coordinator , device_id , description ))
485479 LOGGER .debug (
486480 "Add %s %s sensor" , device [ATTR_NAME ], description .translation_key or description .key
487481 )
You can’t perform that action at this time.
0 commit comments