Ignore NaN values for influxdb (#14347)
* Ignore NaN values for influxdb * Catch TypeError
This commit is contained in:
parent
50cea77887
commit
d43e6a2888
2 changed files with 8 additions and 4 deletions
|
@ -217,7 +217,7 @@ class TestInfluxDB(unittest.TestCase):
|
|||
"""Test the event listener for missing units."""
|
||||
self._setup()
|
||||
|
||||
attrs = {'bignumstring': "9" * 999}
|
||||
attrs = {'bignumstring': '9' * 999, 'nonumstring': 'nan'}
|
||||
state = mock.MagicMock(
|
||||
state=8, domain='fake', entity_id='fake.entity-id',
|
||||
object_id='entity', attributes=attrs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue