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-08-24 16:37:30 +02:00
2018-11-25 09:01:19 +01:00
2018-11-21 20:41:53 -05:00
2018-10-24 12:10:05 +02:00
2018-05-25 15:39:04 +02:00
2018-10-24 12:10:05 +02:00
2018-11-19 14:48:52 +01:00
2018-10-31 22:38:04 +01:00
2018-09-19 15:40:02 +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-08-24 16:37: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-08-24 16:37: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-08-24 16:37:30 +02:00
2018-10-24 12:10:05 +02:00
2018-11-07 13:30:41 +01:00
2018-08-24 16:37: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
2018-10-24 12:10:05 +02:00
2018-10-24 22:20:52 +02:00
2018-11-27 11:23:47 +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-10-24 12:10:05 +02:00
2018-06-16 00:26:48 +02:00
2018-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2018-10-10 08:10:42 +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
2018-11-08 19:19:30 +01:00
2018-11-29 09:01:56 +01:00
2018-08-24 16:37:30 +02:00
2018-10-11 11:38:35 +02:00
2018-08-24 16:37:30 +02:00
2018-11-05 08:27:20 +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-10-24 12:10:05 +02:00
2018-10-24 12:10:05 +02:00
2018-05-02 14:23:07 -04:00
2018-10-24 12:10:05 +02:00