Files
core/tests/components
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:41:44 +01:00
2018-10-25 16:44:57 +02:00
2018-10-24 12:10:05 +02:00
2018-10-08 16:35:38 +02:00
2018-11-24 16:12:29 -05:00
2018-10-24 12:10:05 +02:00
2018-08-24 10:39:35 +02:00
2018-11-27 10:41:44 +01:00
2018-11-16 11:08:39 +01:00
2018-11-28 13:25:23 +01:00
2018-10-04 16:04:44 +02:00
2018-11-28 22:20:13 +01:00
2018-10-24 12:10:05 +02:00
2018-11-24 16:12:19 -05:00
2018-11-05 09:23:58 +01: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-11-27 21:21:25 +01:00
2018-08-19 22:29:08 +02:00
2016-03-09 10:25:50 +01:00
2018-11-27 10:41:44 +01:00
2018-11-27 10:41:44 +01:00
2018-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2018-11-27 10:41:44 +01: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-03-30 21:33:30 +02: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-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2017-10-27 10:15:47 +02: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-10-24 12:10:05 +02:00
2018-02-17 10:29:14 +01: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-10-24 12:10:05 +02:00
2018-11-27 10:41:44 +01:00
2018-10-24 12:10:05 +02:00
2018-11-27 10:41:44 +01: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-11-27 10:41:44 +01:00
2018-10-24 12:10:05 +02:00
2018-11-27 10:41:44 +01:00
2018-10-24 12:10:05 +02:00