Skip to content

Commit

Permalink
Fix number restoration on reload.
Browse files Browse the repository at this point in the history
  • Loading branch information
jack3308 committed Dec 25, 2024
1 parent 26a5111 commit a3b87da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/stockpile/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async def async_setup_entry(
"""Set up number platform."""
async_add_entities([StockPileNumber(entry)])

class StockPileNumber(NumberEntity):
class StockPileNumber(RestoreNumber, NumberEntity):
"""StockPile number class."""

def __init__(self, entry: ConfigEntry) -> None:
Expand Down

0 comments on commit a3b87da

Please sign in to comment.