Skip to content

Commit 9520f96

Browse files
committed
Remove api_attribute, same as key
1 parent 12dd8d5 commit 9520f96

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

custom_components/plugwise_usb/select.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)