Fix: state_as_number always return float

This commit is contained in:
Paulus Schoutsen
2016-02-13 00:08:32 -08:00
parent e9fa1f1f83
commit 1571b33e4a
5 changed files with 14 additions and 29 deletions

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',