Fix probability_threshold in binary_sensor.bayesian (#14512) (Closes: #14362)

This commit is contained in:
Diogo Gomes 2018-05-18 06:48:16 +01:00 committed by Sebastian Muszynski
parent a3777c4ea8
commit 97076aa3fd
2 changed files with 32 additions and 1 deletions

View file

@ -217,4 +217,4 @@ class BayesianBinarySensor(BinarySensorDevice):
@asyncio.coroutine
def async_update(self):
"""Get the latest data and update the states."""
self._deviation = bool(self.probability > self._probability_threshold)
self._deviation = bool(self.probability >= self._probability_threshold)