J. Nick Koston
81d2f5b791
Small cleanups to climate entity feature compat ( #116361 )
...
* Small cleanups to climate entity feature compat
Fix some duplicate property fetches, avoid generating a new
enum every time supported_features was fetched if there was
no modifier
* param
* param
2024-04-29 15:43:55 +02:00
G Johansson
c21d508c2d
Start deprecation of auxiliary heater in ClimateEntity ( #112532 )
...
* Start deprecation of auxiliary heater in ClimateEntity
* No issue for core integrations
* Remove unneded strings
* Move report to state_attributes
2024-03-27 16:10:32 +01:00
Jan Bouwhuis
554aefed42
Generate HomeAssistantError message from English translations ( #113305 )
...
* Fetch exception message from translation cache
* Improve tests
* Return translation key without path, cleanup
* Fetch translations when string variant is requested
* Move import
* revert changes ConfigValidationError
* mypy
* Remove _str__ method instead
* Type _message for mqtt template exception classes
* Revert changes made to test_config.py
* Undo changes TemplateError
* Follow up comments and test coverage
2024-03-16 22:56:48 +01:00
Joost Lekkerkerker
c75342bd9a
Improve lists in integrations [C-D] ( #113072 )
2024-03-11 18:58:35 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
Artur Pragacz
3392660537
Add toggle service to climate ( #100418 )
...
* Add toggle service to climate
* Fix mqtt test
* Add comments
* Fix rebase
* Remove not needed properties
* Fix toggle service
* Fix test
* Test
* Mod mqtt test
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-02-16 15:53:48 +01:00
G Johansson
e877113b21
Add back logging for core for feature flags in climate ( #109572 )
2024-02-04 15:15:00 +01:00
G Johansson
61c82718f2
Don't log warning for core integrations on new feature flags in Climate ( #109250 )
...
* Don't log for core integration on Climate new feature flags
* Add test
* Fix test
2024-02-01 16:53:53 +01:00
G Johansson
c59345338e
Add test for integration migrated in climate ( #109224 )
2024-01-31 19:57:59 +01:00
G Johansson
ddb56fe20d
Modify climate turn_on/off backwards compatibility check ( #109195 )
...
* Modify climate turn_on/off backwards compatibility check
* Fix logger message
* Comments
* Fix demo
* devolo
* ecobee
* Some more
* Fix missing feature flag
* some more
* and some more
* Remove demo change
* Add back demo change
* Fix demo
* Update comments
2024-01-31 16:29:36 +01:00
G Johansson
bc720b48b4
Add TURN_OFF and TURN_ON to ClimateEntityFeature ( #101673 )
...
* Add ClimateEntityFeature.TURN_OFF
* Fixes
* Fixes
* wording
* Change to services
* Fixing
* Fixing
* Last bits
* Review comments
* Add hvac_modes checks
* Fixes
* Add tests
* Review comments
* Update snapshots
* balboa
* coolmaster
* ecobee
* mqtt
* nest
* plugwise
* smarttub
* whirlpool
* zwave_js
* fix test climate
* test climate
* zwave
* nexia
* nuheat
* venstar
* tado
* smartthings
* self.hvac_modes not None
* more tests
* homekit_controller
* homekit controller snapshot
2024-01-30 15:07:47 +01:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
J. Nick Koston
552d4e49f0
Climate platform back-compat for custom components without ClimateEntityFeature ( #106605 )
2023-12-29 00:36:28 +01:00
G Johansson
83f4d3af5c
Implement mode validation in Climate entity component ( #105745 )
...
* Implement mode validation in Climate entity component
* Fix some tests
* more tests
* Fix translations
* fix deconz tests
* Fix switcher_kis tests
* not None
* Fix homematicip_cloud test
* Always validate
* Fix shelly
* reverse logic in validation
* modes_str
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-27 14:51:39 +01:00
Robert Resch
494a897568
Deprecate deprecated climate constants ( #106096 )
2023-12-21 00:00:21 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
epenet
f453726b18
Cleanup HVACAction and HVACMode in tests ( #78813 )
2022-09-20 20:30:54 +02:00
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ( #61006 )
...
* Remove deprecated base entity classes
* Clean up tests
2021-12-05 13:53:52 +01:00
Marc Mueller
54d1e9985f
Update typing 15 ( #48079 )
2021-03-18 15:13:22 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Martin Hjelmare
1593bdf2e9
Add climate services required features ( #35804 )
2020-05-20 23:47:30 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Erik Montnemery
29bc93ea98
Rename ClimateDevice to ClimateEntity ( #34591 )
2020-04-25 18:04:03 +02:00
Bas Nijholt
954813b478
use isort to sort imports according to PEP8 for climate ( #29625 )
2019-12-08 22:25:01 +05:30
Paulus Schoutsen
94675ca5a7
Mark entity abc ( #28869 )
...
* Mark entity abc
* Use abstractmethod in climate
* Lint
2019-11-19 13:42:09 -06:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Pascal Vizeli
d47905d119
Add support for on/off climate ( #25026 )
...
* Add support for on/off climate
* address comments
* Add test for sync overwrite
* Add more tests
2019-07-11 15:28:11 -07:00
Pascal Vizeli
84cf76ba36
Climate 1.0 ( #23899 )
...
* Climate 1.0 / part 1/2/3
* fix flake
* Lint
* Update Google Assistant
* ambiclimate to climate 1.0 (#24911 )
* Fix Alexa
* Lint
* Migrate zhong_hong
* Migrate tuya
* Migrate honeywell to new climate schema (#24257 )
* Update one
* Fix model climate v2
* Cleanup p4
* Add comfort hold mode
* Fix old code
* Update homeassistant/components/climate/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/climate/const.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* First renaming
* Rename operation to hvac for paulus
* Rename hold mode to preset mode
* Cleanup & update comments
* Remove on/off
* Fix supported feature count
* Update services
* Update demo
* Fix tests & use current_hvac
* Update comment
* Fix tests & add typing
* Add more typing
* Update modes
* Fix tests
* Cleanup low/high with range
* Update homematic part 1
* Finish homematic
* Fix lint
* fix hm mapping
* Support simple devices
* convert lcn
* migrate oem
* Fix xs1
* update hive
* update mil
* Update toon
* migrate deconz
* cleanup
* update tesla
* Fix lint
* Fix vera
* Migrate zwave
* Migrate velbus
* Cleanup humity feature
* Cleanup
* Migrate wink
* migrate dyson
* Fix current hvac
* Renaming
* Fix lint
* Migrate tfiac
* migrate tado
* Fix PRESET can be None
* apply PR#23913 from dev
* remove EU component, etc.
* remove EU component, etc.
* ready to test now
* de-linted
* some tweaks
* de-lint
* better handling of edge cases
* delint
* fix set_mode typos
* apply PR#23913 from dev
* remove EU component, etc.
* ready to test now
* de-linted
* some tweaks
* de-lint
* better handling of edge cases
* delint
* fix set_mode typos
* delint, move debug code
* away preset now working
* code tidy-up
* code tidy-up 2
* code tidy-up 3
* address issues #18932 , #15063
* address issues #18932 , #15063 - 2/2
* refactor MODE_AUTO to MODE_HEAT_COOL and use F not C
* add low/high to set_temp
* add low/high to set_temp 2
* add low/high to set_temp - delint
* run HA scripts
* port changes from PR #24402
* manual rebase
* manual rebase 2
* delint
* minor change
* remove SUPPORT_HVAC_ACTION
* Migrate radiotherm
* Convert touchline
* Migrate flexit
* Migrate nuheat
* Migrate maxcube
* Fix names maxcube const
* Migrate proliphix
* Migrate heatmiser
* Migrate fritzbox
* Migrate opentherm_gw
* Migrate venstar
* Migrate daikin
* Migrate modbus
* Fix elif
* Migrate Homematic IP Cloud to climate-1.0 (#24913 )
* hmip climate fix
* Update hvac_mode and preset_mode
* fix lint
* Fix lint
* Migrate generic_thermostat
* Migrate incomfort to new climate schema (#24915 )
* initial commit
* Update climate.py
* Migrate eq3btsmart
* Lint
* cleanup PRESET_MANUAL
* Migrate ecobee
* No conditional features
* KNX: Migrate climate component to new climate platform (#24931 )
* Migrate climate component
* Remove unused code
* Corrected line length
* Lint
* Lint
* fix tests
* Fix value
* Migrate geniushub to new climate schema (#24191 )
* Update one
* Fix model climate v2
* Cleanup p4
* Add comfort hold mode
* Fix old code
* Update homeassistant/components/climate/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/climate/const.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* First renaming
* Rename operation to hvac for paulus
* Rename hold mode to preset mode
* Cleanup & update comments
* Remove on/off
* Fix supported feature count
* Update services
* Update demo
* Fix tests & use current_hvac
* Update comment
* Fix tests & add typing
* Add more typing
* Update modes
* Fix tests
* Cleanup low/high with range
* Update homematic part 1
* Finish homematic
* Fix lint
* fix hm mapping
* Support simple devices
* convert lcn
* migrate oem
* Fix xs1
* update hive
* update mil
* Update toon
* migrate deconz
* cleanup
* update tesla
* Fix lint
* Fix vera
* Migrate zwave
* Migrate velbus
* Cleanup humity feature
* Cleanup
* Migrate wink
* migrate dyson
* Fix current hvac
* Renaming
* Fix lint
* Migrate tfiac
* migrate tado
* delinted
* delinted
* use latest client
* clean up mappings
* clean up mappings
* add duration to set_temperature
* add duration to set_temperature
* manual rebase
* tweak
* fix regression
* small fix
* fix rebase mixup
* address comments
* finish refactor
* fix regression
* tweak type hints
* delint
* manual rebase
* WIP: Fixes for honeywell migration to climate-1.0 (#24938 )
* add type hints
* code tidy-up
* Fixes for incomfort migration to climate-1.0 (#24936 )
* delint type hints
* no async unless await
* revert: no async unless await
* revert: no async unless await 2
* delint
* fix typo
* Fix homekit_controller on climate-1.0 (#24948 )
* Fix tests on climate-1.0 branch
* As part of climate-1.0, make state return the heating-cooling.current characteristic
* Fixes from review
* lint
* Fix imports
* Migrate stibel_eltron
* Fix lint
* Migrate coolmaster to climate 1.0 (#24967 )
* Migrate coolmaster to climate 1.0
* fix lint errors
* More lint fixes
* Fix demo to work with UI
* Migrate spider
* Demo update
* Updated frontend to 20190705.0
* Fix boost mode (#24980 )
* Prepare Netatmo for climate 1.0 (#24973 )
* Migration Netatmo
* Address comments
* Update climate.py
* Migrate ephember
* Migrate Sensibo
* Implemented review comments (#24942 )
* Migrate ESPHome
* Migrate MQTT
* Migrate Nest
* Migrate melissa
* Initial/partial migration of ST
* Migrate ST
* Remove Away mode (#24995 )
* Migrate evohome, cache access tokens (#24491 )
* add water_heater, add storage - initial commit
* add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
delint
* Add Broker, Water Heater & Refactor
add missing code
desiderata
* update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
* bugfix - loc_idx may not be 0
more refactor - ensure pure async
more refactoring
appears all r/o attributes are working
tweak precsion, DHW & delint
remove unused code
remove unused code 2
remove unused code, refactor _save_auth_tokens()
* support RoundThermostat
bugfix opmode, switch to util.dt, add until=1h
revert breaking change
* store at_expires as naive UTC
remove debug code
delint
tidy up exception handling
delint
add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
add water_heater, add storage - initial commit
delint
add missing code
desiderata
update honeywell client library & CODEOWNER
add auth_tokens code, refactor & delint
refactor for broker
delint
bugfix - loc_idx may not be 0
more refactor - ensure pure async
more refactoring
appears all r/o attributes are working
tweak precsion, DHW & delint
remove unused code
remove unused code 2
remove unused code, refactor _save_auth_tokens()
support RoundThermostat
bugfix opmode, switch to util.dt, add until=1h
revert breaking change
store at_expires as naive UTC
remove debug code
delint
tidy up exception handling
delint
* update CODEOWNERS
* fix regression
* fix requirements
* migrate to climate-1.0
* tweaking
* de-lint
* TCS working? & delint
* tweaking
* TCS code finalised
* remove available() logic
* refactor _switchpoints()
* tidy up switchpoint code
* tweak
* teaking device_state_attributes
* some refactoring
* move PRESET_CUSTOM back to evohome
* move CONF_ACCESS_TOKEN_EXPIRES CONF_REFRESH_TOKEN back to evohome
* refactor SP code and dt conversion
* delinted
* delinted
* remove water_heater
* fix regression
* Migrate homekit
* Cleanup away mode
* Fix tests
* add helpers
* fix tests melissa
* Fix nehueat
* fix zwave
* add more tests
* fix deconz
* Fix climate test emulate_hue
* fix tests
* fix dyson tests
* fix demo with new layout
* fix honeywell
* Switch homekit_controller to use HVAC_MODE_HEAT_COOL instead of HVAC_MODE_AUTO (#25009 )
* Lint
* PyLint
* Pylint
* fix fritzbox tests
* Fix google
* Fix all tests
* Fix lint
* Fix auto for homekit like controler
* Fix lint
* fix lint
2019-07-08 14:00:24 +02:00
Paulus Schoutsen
df21dd21f2
RFC: Call services directly ( #18720 )
...
* Call services directly
* Simplify
* Type
* Lint
* Update name
* Fix tests
* Catch exceptions in HTTP view
* Lint
* Handle ServiceNotFound in API endpoints that call services
* Type
* Don't crash recorder on non-JSON serializable objects
2018-11-30 21:28:35 +01:00
Martin Hjelmare
fbb6782081
Fix SET_TEMPERATURE_SCHEMA in climate component ( #8879 )
...
* Require either temperature or high/low target temperatures.
* Add tests.
2017-08-12 09:39:05 -07:00