Skip to content

Commit

Permalink
Fix Hass 2024.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 14, 2024
1 parent 1d7113f commit 0afa133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/jura/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def internal_update(self):
attribute = self.device.attribute(self.attr)

self._attr_available = "value" in attribute
self._attr_native_min_value = attribute.get("min")
self._attr_native_max_value = attribute.get("max")
self._attr_native_min_value = attribute.get("min", 0)
self._attr_native_max_value = attribute.get("max", 0)
self._attr_native_step = attribute.get("step")
self._attr_native_value = attribute.get("value")

Expand Down

0 comments on commit 0afa133

Please sign in to comment.