Change behavior to be more natural and fix test (#4150)

This commit is contained in:
Fabian Affolter 2016-11-01 10:43:48 +01:00 committed by GitHub
parent 1d9ac5f8b3
commit 0211cf29eb

View File

@ -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)