Fix doctring newline and handle ha.state string-being

This commit is contained in:
nielstron committed 2018-06-06 20:40:53 +02:00
1 parent 07d139b3a8
commit bb98331ba4
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ class TestFilterSensor(unittest.TestCase):
lower_bound=lower,
upper_bound=upper)
for unf_state in self.values:
prev = unf_state.state
prev = float(unf_state.state)
filtered = filt.filter_state(unf_state)
if prev < lower:
self.assertEqual(lower, filtered.state)