-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deprecation warnings on initialization (#24)
* Fix deprecates uses of TEMP_CELSIUS * Fix warning about ClimateEntityFeature usage This adds ClimateEntityFeature.TURN_ON and ClimateEntityFeature.TURN_OFF to supported features and disables the backwards compatibility flag related to those. This prevents a warning at initialization. Specific warning is: Entity None (<class 'custom_components.wundasmart.climate.Device'>) implements HVACMode(s): off, auto, heat and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/tonyroberts/hawundasmart/issues * Remove TURN_OFF and TURN_ON flags
- Loading branch information
1 parent
74da2b5
commit e6b1165
Showing
2 changed files
with
8 additions
and
4 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