mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Change behavior to be more natural and fix test (#4150)
This commit is contained in:
parent
1d9ac5f8b3
commit
0211cf29eb
@ -70,4 +70,4 @@ class RandomSensor(Entity):
|
|||||||
def async_update(self):
|
def async_update(self):
|
||||||
"""Get a new number and updates the states."""
|
"""Get a new number and updates the states."""
|
||||||
from random import randrange
|
from random import randrange
|
||||||
self._state = randrange(self._minimum, self._maximum)
|
self._state = randrange(self._minimum, self._maximum + 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user