Skip to content

Commit

Permalink
Update number.py, fixing depreciated method NumberEntity
Browse files Browse the repository at this point in the history
Fixes #56
Issue: ButtonPlusBrightness is overriding depreciated methods of an instance of NumberEntity
  • Loading branch information
wimjanse authored May 13, 2024
1 parent 6e69da2 commit 4bf0c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/button_plus/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def device_info(self) -> DeviceInfo:
identifiers=identifiers,
)

async def async_set_value(self, value: float) -> None:
async def async_set_native_value(self, value: float) -> None:
"""Set the text value and publish to mqtt."""
label_topic = f"buttonplus/{self._hub_id}/brightness/{self._brightness_type}"
_LOGGER.debug(f"ButtonPlus brightness update for {self.entity_id}")
Expand Down

0 comments on commit 4bf0c28

Please sign in to comment.