Skip to content

Commit

Permalink
Merge pull request #62 from wimjanse/main
Browse files Browse the repository at this point in the history
Update number.py, fixing depreciated method NumberEntity
  • Loading branch information
koenhendriks authored Jun 10, 2024
2 parents 6e69da2 + 4bf0c28 commit 0e6ce0c
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 0e6ce0c

Please sign in to comment.