Files
core/tests
ehendrix23 aadf72d445 Fix statistics for binary sensor (#18764)
* Fix statistics for binary sensor

-) Binary sensors have 'on' and 'off' for state resulting in issue as numbers were expected. Fixed so that it works with non-numeric states as well.
-) Added check to skip unknown states.
-) Updates test so that binary sensor test will use non-numeric values for states.

* Using guard clause and changed debug to error

Changed to use a guard clause for state unknown.
Writing error on value error instead of debug.

* Add docstring
2018-11-29 09:01:56 +01:00
..
2018-11-27 10:42:56 +01:00
2016-01-30 14:08:32 -05:00
2018-11-27 14:00:05 +01:00
2018-08-20 16:34:18 +02:00
2016-10-23 23:48:01 -07:00
2018-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2018-02-22 23:22:27 -08:00
2018-11-28 22:20:13 +01:00