Fix: state_as_number always return float

This commit is contained in:
Paulus Schoutsen committed 2016-02-13 00:08:32 -08:00
1 parent e9fa1f1f83
commit 1571b33e4a
5 files changed
+14 -29

No files matched your search

+1
View File
@@ -89,6 +89,7 @@ class TestGraphite(unittest.TestCase):
'bat': 'NaN',
}
expected = [
'ha.entity.state 0.000000 12345',
'ha.entity.foo 1.000000 12345',
'ha.entity.bar 2.000000 12345',
'ha.entity.baz 1.000000 12345',