Change behavior to be more natural and fix test (#4150)
This commit is contained in:
1 parent
1d9ac5f8b3
commit
0211cf29eb
1 file changed
+1
-1
@@ -70,4 +70,4 @@ class RandomSensor(Entity):
|
||||
def async_update(self):
|
||||
"""Get a new number and updates the states."""
|
||||
from random import randrange
|
||||
self._state = randrange(self._minimum, self._maximum)
|
||||
self._state = randrange(self._minimum, self._maximum + 1)
|
||||
Reference in new issue
Block a user