forked from home-assistant/core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add binary characteristics, add deprecation warning for optional stat…
…e_characteristic parameter (home-assistant#60402) * Add binary source sensor statistics * Make state_characteristic a required parameter * Move binary unitless testcase * Add testcases for binary characteristics * Revert charact. to optional with deprecation warning * Correctly check for binary supported characteristic
- Loading branch information
1 parent
daebf0e
commit 1753456
Showing
3 changed files
with
329 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ sensor: | |
- platform: statistics | ||
entity_id: sensor.cpu | ||
name: cputest | ||
state_characteristic: mean |
Oops, something went wrong.