mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +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):
|
||||
"""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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user