File tree Expand file tree Collapse file tree
custom_components/plugwise_usb Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ class PlugwiseSelectEntityDescription(
2828):
2929 """Describes Plugwise select entity."""
3030
31- api_attribute : str = ""
3231 async_select_fn : str = ""
3332
3433
@@ -39,7 +38,6 @@ class PlugwiseSelectEntityDescription(
3938 async_select_fn = "set_motion_sensitivity_level" ,
4039 entity_category = EntityCategory .CONFIG ,
4140 node_feature = NodeFeature .MOTION_CONFIG ,
42- api_attribute = "sensitivity_level" ,
4341 options = MotionSensitivity ,
4442 ),
4543)
@@ -125,7 +123,7 @@ def _handle_coordinator_update(self) -> None:
125123
126124 current_option = getattr (
127125 data ,
128- self .entity_description .api_attribute ,
126+ self .entity_description .key ,
129127 )
130128 self ._attr_current_option = current_option .name .lower ()
131129 self .async_write_ha_state ()
You can’t perform that action at this time.
0 commit comments