Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements ( #33733 )
2020-04-06 12:51:48 +02:00
Knapoc
7ec7306ea8
Update deconz/cover.py to adapt rest-api changes ( #32351 )
...
* Update cover.py to adapt rest-api changes
* adjust test to reflect max brightness changes
* implement test for rest-api cover position of 255
2020-03-16 15:44:59 +01:00
Robert Svensson
a745134128
deConz - Use proper mechanisms for options flow tests ( #31965 )
...
Generic clean up
2020-02-18 23:52:56 +01:00
Robert Svensson
b5df2ba853
deCONZ - Directly reflect changes to config entry options ( #31661 )
...
* Directly reflect changes to config entry options
* Remove print
* Add tests
* Add title to config options
2020-02-18 13:24:25 -08:00
Robert Svensson
883b8f21ce
deCONZ - Library cleanup ( #31410 )
...
* Follow library changes
* Bump dependency to v70
* Fix test
2020-02-02 19:07:20 +01:00
FrengerH
704cfcf235
deCONZ - Fix magic cube awake gesture ( #31403 )
2020-02-02 12:54:59 +01:00
Robert Svensson
b373c202c9
deCONZ - Add support for new switch type ( #31362 )
2020-02-01 17:08:49 +01:00
Robert Svensson
111fc1fa8e
Use all new helper functions ( #31278 )
2020-01-29 16:21:23 -08:00
Robert Svensson
7b29a498c6
Fix issue with group unique id when normalising bridge id ( #30904 )
2020-01-17 15:28:34 -08:00
Robert Svensson
d883ee62f8
deCONZ - Disable daylight sensor by default ( #30625 )
...
* Dont enable daylight sensor by default
* Fix tests
2020-01-10 19:57:08 +01:00
Robert Svensson
84a1afc785
deCONZ - Fix device automations ( #30577 )
2020-01-08 10:06:33 +01:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
FrengerH
0d1da9f5cb
deCONZ - Rotation support for Xiaomi magic cube ( #30472 )
...
* Added rotation to deconz magic cube event
* Device trigger support
2020-01-06 12:34:27 +01:00
Robert Svensson
967fe89f6d
deCONZ - Allow manual configuration to update existing configuration ( #30469 )
...
* Allow manual configuration to update existing configuration
* Harmonize tests
2020-01-04 22:55:57 +01:00
Robert Svensson
ec61342ec3
deCONZ - Improve tests based on Martins feedback in Axis integration ( #30438 )
2020-01-03 18:11:04 +01:00
Jc2k
fdfedd086b
Rework FlowManager to use inheritance ( #30133 )
...
* Pull async_finish_flow/async_create_flow out of ConfigEntries
* Towards refactoring
* mypy fixes
* Mark Flow manager with abc.* annotations
* Flake8 fixes
* Mypy fixes
* Blacken data_entry_flow
* Blacken longer signatures caused by mypy changes
* test fixes
* Test fixes
* Fix typo
* Avoid protected member lint (W0212) in config_entries
* More protected member fixes
* Missing await
2020-01-03 11:52:01 +01:00
Robert Svensson
0a4f3ec1ec
Use config entry unique id for deCONZ ( #30122 )
...
* Use config entry unique id
* Clean up
* Backwards compatiblity note
* Fix some of Balloobs comments
* Bump dependency to v66
* Black somehow missed config flow tests...
* Move set unique ID til after possibility to update existing entry
2020-01-03 11:50:53 +01:00
Franck Nijhof
d101d4449f
Fix deconz SSDP updating Hassio discovery ( #30153 )
2019-12-22 22:24:18 +01:00
Franck Nijhof
eb0aed3653
Fix update port and api key on deconz discovery config entry u… ( #30088 )
...
* Fix update port and api key on discovery config entry update
* Remove coroutine from _update_entry
2019-12-20 10:29:18 +01:00
Ville Skyttä
d236a19139
Include all SSDP data in discovery info ( #28197 )
...
* Include all SSDP data in discovery info
* Use UPnP device description as discovery info, inject some SSDP attrs
* Clean up attribute names
* Adapt existing SSDP flows to changed attribute names
* Prefix all SSDP UPnP attribute name constants with ATTR_UPNP, tweak a bit
2019-12-19 19:28:03 +02:00
Bas Nijholt
41cd678f00
Sort imports according to PEP8 for deconz ( #29659 )
2019-12-09 12:25:35 +01:00
Robert Svensson
57a3f7d5c8
Pass in parameters explicitly to DeconzSession ( #29617 )
...
Dont pass in loop to DeconzSession
Services will use new refresh state method
2019-12-08 16:53:34 +01:00
Robert Svensson
557e585e56
deCONZ - Support creating battery sensor when reported ( #27538 )
2019-11-01 22:31:22 +01:00
Robert Svensson
d345b58ce6
Improve UniFi config flow tests and add options flow test ( #27340 )
2019-10-08 14:44:33 -07:00
Erik Montnemery
3e99743244
Add device trigger support to sensor entities ( #27133 )
...
* Add device trigger support to sensor entities
* Fix typing
* Fix tests, add test helper for comparing lists
2019-10-03 06:14:35 +02:00
Robert Svensson
d8c6b281b8
deCONZ - Support Symfonisk sound controller with device triggers ( #26913 )
...
* Device trigger tests shall use the common gateway mock
* Follow ebaauws clarification of signals
* Fix translations
2019-10-02 22:12:59 +02:00
Robert Svensson
cff7fd0ef3
deCONZ - Increase bridge discovery robustness in config flow ( #26911 )
2019-09-25 21:50:14 +02:00
Robert Svensson
4582b6e668
deCONZ - Improve ssdp discovery by storing uuid in config entry ( #26882 )
...
* Improve ssdp discovery by storing uuid in config entry so discovery can update any deconz entry, loaded or not
2019-09-25 18:56:31 +02:00
Paulus Schoutsen
6fdff9ffab
Reorg device automation ( #26880 )
...
* async_trigger -> async_attach_trigger
* Reorg device automations
* Update docstrings
* Fix types
* Fix extending schemas
2019-09-24 14:57:05 -07:00
Robert Svensson
f5d12669a5
deCONZ improve gateway tests ( #26709 )
...
* Improve gateway tests
* Harmonize all tests to use the same gateway initialization method
* Improve scene tests
* Add gateway resync call to platform tests
* Forgot to change switch tests to use common gateway method
* Improve event tests
2019-09-19 14:44:09 -07:00
Robert Svensson
886d8bd6e2
deCONZ rewrite sensor tests ( #26679 )
...
* Improve binary sensor tests
* Fix sensor tests
* Improve readability of binary sensor
* Fix climate tests
Fix sensor platform not loading climate devices as sensors
* Add test to verify adding new sensor after start up
2019-09-18 10:07:32 -07:00
Robert Svensson
8a39924b37
deCONZ improve light tests ( #26697 )
...
* Improve light tests
* Small improvements on light and group classes
2019-09-18 12:47:26 +02:00
Robert Svensson
5116d02747
deCONZ - Improve service tests ( #26663 )
...
* Improve configure service tests
* Add refresh device service test
* Add tests for setup and unload services
* Remove refresh device test from test_init
* Extra verification of deconz services existance in hass.data
2019-09-16 10:08:13 +02:00
Robert Svensson
9c2053a251
deCONZ - Remove mechanisms to import a configuration from configuration.yaml ( #26648 )
2019-09-14 22:53:59 +02:00
Robert Svensson
fb1acfccc9
deCONZ - create deconz_events through sensor platform ( #26592 )
...
* Move event creation into sensor platform where it belongs
* Fixed the weird failing test observed during device automation PR
2019-09-14 00:16:37 +02:00
Robert Svensson
c680c07c65
deCONZ device automations ( #26366 )
...
* Early draft
* Getting there
* Working fully with Hue dimmer remote
* Fix Balloobs comments
* No side effects in constructor
* Improve hue dimmer
* Add Ikea remote control
* Add xiaomi button support
* Refactor getting deconz event
* Added xiaomi devices and tradfri wireless dimmer
* Resolve unique id from device id
* Add Hue Tap and Tradfri on off switch
* More triggers for ikea on off switch and Aqara double wall switch
* Add support for Tradfri open close remote
* Fix changes after rebase
* Initial test
* Change id to event_id
* Fix translations and add subtypes
* Try if tests pass without the new tests
* Revert disabling tests
Add new exception InvalidDeviceAutomationConfig
* Ignore places calling remotes
* Enable all gateway tests
* Found the issue, now to identify which test creates it
* Remove block till done
* See if device automation test passes in azure
* Register event to device registry
* Enable test sensors
* Skip deconz event tests currently failing
* Added reason why skipping tests
2019-09-10 16:56:28 -07:00
Robert Svensson
518d2c31bb
deCONZ - use entity registry disabled_by to control available entities ( #26219 )
...
* First draft
* Support enabling disabled entities
* Clean up
* Move import
* Local entity enabled replaced during rebase
* Add option flow test
* Mark options properties with option
2019-09-05 16:38:00 -07:00
Robert Svensson
d1874d148a
deCONZ - Dont update entry if data is equal
2019-08-31 15:56:43 +02:00
5mauggy
62338dd28e
Fix deConz thermostat integration ( #26267 )
...
* Fixed logger name to allow selective logging
* Fixed thermostat mode ('off' and 'heat' modes were not consistent with Eurotronic Spirit Zigbee Thermostat state) and added 'auto' to supported mode
* Added required blank lines in code
* Black formatting
* Revert logging code added to each files. Instead, only replaced "." by __package__ in const.py
* Added a test on self._device.state_on to determine hvac_mode
* Black formatting
* Added debug message when unsupported hvac_mode is encountered
* Applied formatting recommandations
* Updated tests for 'auto' hvac_mode
2019-08-30 14:28:39 +02:00
Robert Svensson
1f2e0d3949
deCONZ normalizes cover values to follow zigbee spec ( #26240 )
2019-08-27 21:06:14 +02:00
Robert Svensson
a2589f56e1
Add system options to config entries ( #25926 )
...
* Add system options to config entries
* For feedback
* Follow most of balloobs comments
* Fix balloobs comments
* Improvements
* Fix second round of Balloobs comments
* Fix third round
* Add system options to mock config entry
* Fix integration tests
* Fix the last failing tests
* Fix disabled string
* Fix failing disabled_by tests
* New tests
* Config entry WS API tests
* Fix comments
2019-08-17 21:34:11 -07:00
Paulus Schoutsen
6f357cb23e
First pass fixing tests that raise exceptions caught by asyncio.gather ( #25860 )
...
* First pass fixing tests that raise exceptions caught by asyncio.gather
* Fix demo test
* lint
2019-08-12 16:42:12 +02:00
Nikolay Vasilchuk
8b6ddc22a5
Fix deconz allow_clip_sensor and allow_deconz_groups options ( #25811 )
2019-08-09 19:31:58 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Robert Svensson
da53e0a836
deCONZ - Add power attribute for consumption sensors ( #25512 )
...
* Add power attribute for consumption sensors
* Bump dependency to v62
2019-07-28 18:25:38 +02: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
Julien Brochet
fadfb89b4c
Load the SSDP component only when it's needed ( #24420 )
...
* fix(hue): Load the SSDP component only when it's needed
* fix(deconz): Don't load the SSDP component when it's not needed
* Update config_flow.py
* Update test_config_flow.py
2019-06-10 09:11:07 -07:00
Robert Svensson
48276b041c
deCONZ - properly identify configured bridge ( #24378 )
2019-06-08 08:43:18 +02:00
Robert Svensson
449a7d3fd5
deCONZ migrate to SSDP discovery ( #24252 )
...
* Migrate deCONZ to use new SSDP discovery
Add new discovery info manufacturer URL to be able to separate Hue and deCONZ bridges
* Mark deCONZ as migrated in Discovery component
* Fix tests
* Fix Hue discovery ignore deCONZ bridge
* Less snake more badger
* Mushroom
* Fix indentation
* Config flow ignore manufacturer url that is not philips
2019-06-03 09:26:01 -07:00
Robert Svensson
31b2f331db
Library refactorization of deCONZ ( #23725 )
...
* Improved sensors
* Lib update signalling
* Replace reason with changed
* Move imports to top of file
* Add support for secondary temperature reported by some Xiaomi devices
* Bump dependency to v59
2019-05-27 06:56:00 +02:00