Ville Skyttä
9b2544c923
Remove some unneeded pylint suppressions ( #32152 )
2020-02-24 16:47:15 -08:00
HomeAssistant Azure
8257165562
[ci skip] Translation update
2020-02-23 00:31:50 +00:00
Paulus Schoutsen
e71c7e1f5e
Fix hue test
2020-02-20 08:11:27 -08:00
Victor Guimarães
93a844b1d5
Hue Group features based on the bulbs in it ( #31897 )
...
* Computes the features of a hue group as the union of the features of the bulbs in the group
* Moved create item to a function
* Added test for hue group features
2020-02-17 10:22:34 -08:00
Paulus Schoutsen
b77f2670a7
Upgrade aiohue ( #31903 )
2020-02-17 09:52:54 +01:00
Paulus Schoutsen
81b159f424
Disable Hue groups for new setups ( #31713 )
2020-02-11 08:50:07 -08:00
HomeAssistant Azure
a2bea2cab8
[ci skip] Translation update
2020-02-09 00:31:39 +00:00
Paulus Schoutsen
989dd32258
Hue to retry if hub errors out ( #31616 )
...
* Respect semaphore
* Add retries when connection reset
* Also catch OSError from aiohttp when authenticating
2020-02-08 13:20:37 -08:00
Paulus Schoutsen
0d474e1183
Update the update coordinator API to make it easier to use ( #31471 )
...
* Update the update coordinator API to make it easier to use
* failed_last_update -> last_update_success
2020-02-06 09:29:29 -08:00
Paulus Schoutsen
481ea0aa5b
Check for known Hue vulnerability ( #31494 )
2020-02-05 13:57:17 -08:00
Paulus Schoutsen
370e2ffa5a
Fix coordinator reference ( #31467 )
2020-02-04 14:57:15 -08:00
Paulus Schoutsen
166d770ddd
Update Hue data fetching ( #31338 )
...
* Refactor Hue Lights to use DataCoordinator
* Redo how Hue updates data
* Address comments
* Inherit from Entity and remove pylint disable
* Add tests for debounce
2020-01-31 14:47:40 -08:00
Paulus Schoutsen
ab8b94382e
Update Hue discovery ( #31215 )
2020-01-27 10:54:38 -07:00
Franck Nijhof
4571cf01e2
Update Hue existing config entry with discovery data ( #31087 )
...
* Update Hue existing config entry with discovery data
* Updated method documentation comments
* Update implementation to match latest dev
* Use named argument for clarity
2020-01-24 09:07:53 -08:00
HomeAssistant Azure
692e4f27c4
[ci skip] Translation update
2020-01-21 00:33:20 +00:00
Paulus Schoutsen
9f20185cee
Fix hue accepting filename ( #30924 )
2020-01-17 15:38:38 -08:00
Paulus Schoutsen
7da84dca76
Reinstate and deprecate filename option for hue config ( #30846 )
2020-01-16 11:28:35 -08:00
Paulus Schoutsen
6f24fe3970
Handle no host info in ignored config entries ( #30822 )
2020-01-16 10:19:38 +01:00
Paulus Schoutsen
1f9d6ba541
Update Hue SSDP discovery ( #30695 )
2020-01-13 05:30:07 -08:00
HomeAssistant Azure
d6512c8a9f
[ci skip] Translation update
2020-01-11 00:31:55 +00:00
Franck Nijhof
0e9b414c26
Migrate Integration Quality Scale from docs to manifest ( #30579 )
2020-01-08 14:19:42 +01:00
Sascha Kühndel
23700e4db8
Fix hue flashing innr lights ( #29828 )
2020-01-07 20:56:57 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Ian Duffy
5580ee3fa1
Don't allow badly formed upnp devices to kill auto discovery ( #30342 )
...
Prevent the following from occurring:
```
2019-12-31 22:38:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 85, in async_init
return await self._async_handle_step(flow, flow.init_step, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 145, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/deconz/config_flow.py", line 182, in async_step_ssdp
if discovery_info[ssdp.ATTR_UPNP_MANUFACTURER_URL] != DECONZ_MANUFACTURERURL:
KeyError: 'manufacturerURL'
2019-12-31 22:38:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 85, in async_init
return await self._async_handle_step(flow, flow.init_step, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 145, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/deconz/config_flow.py", line 182, in async_step_ssdp
if discovery_info[ssdp.ATTR_UPNP_MANUFACTURER_URL] != DECONZ_MANUFACTURERURL:
KeyError: 'manufacturerURL'
```
2020-01-03 12:08:40 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
HomeAssistant Azure
13116d8d3f
[ci skip] Translation update
2019-12-30 00:32:19 +00: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
Paulus Schoutsen
9c7caaa142
Add option to ignore flows ( #30008 )
2019-12-18 07:41:01 +01:00
Paulus Schoutsen
58b5833d64
Convert Hue to use unique ID ( #30000 )
...
* Convert Hue to use unique ID
* Fix normalization
* Store/restore unique ID
* Fix tests
2019-12-16 19:45:09 +01:00
Paulus Schoutsen
d851cb6f9e
Add unique ID to config entries ( #29806 )
...
* Add unique ID to config entries
* Unload existing entries with same unique ID if flow with unique ID is
finished
* Remove unused exception
* Fix typing
* silence pylint
* Fix tests
* Add unique ID to Hue
* Address typing comment
* Tweaks to comments
* lint
2019-12-16 12:27:43 +01:00
Paulus Schoutsen
27244e29c4
Install discovery requirements if used ( #29795 )
...
* Install discovery requirements if used
* Update loader.py
* Fix types
2019-12-10 09:24:49 +01:00
springstan
009e4df6ef
Move imports to top for hue ( #29501 )
2019-12-05 13:19:50 +01:00
HomeAssistant Azure
a1a131334a
[ci skip] Translation update
2019-12-04 00:32:11 +00:00
Bram Kragten
d91dd68b31
Limit parallel requests to Philips Hue ( #29189 )
...
* Limit parallel requests to Philips Hue
* Fix tests
* Remove loop
* Update homeassistant/components/hue/bridge.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
2019-12-01 13:24:16 -08:00
Bram Kragten
2bdf7fc8f5
Fix Hue linking with non ASCII chars in location ( #29213 )
...
* Fix Hue linking with non ASCII chars in location
* Use slugify
2019-11-30 21:33:11 -08:00
Franck Nijhof
d5efd0b352
Fix Espalexa being detected as Hue Bridge ( #29237 )
2019-11-30 21:28:42 -08:00
HomeAssistant Azure
807de1aeb3
[ci skip] Translation update
2019-11-26 00:32:24 +00:00
HomeAssistant Azure
f170ac48d2
[ci skip] Translation update
2019-11-15 00:32:15 +00:00
Bram Kragten
66a574eca4
Hue: store current sensor entities by bridge ( #28679 )
2019-11-10 11:37:34 -08:00
Ville Skyttä
1679ec3245
SSDP matching improvements ( #28285 )
...
* SSDP matching improvements
- support multiple match groups per domain
- require matches on all, not any item in a group
- support matching on all UPnP device description data
* Manifest structure fixes
2019-11-02 12:30:09 -07:00
Bram Kragten
549e8cf2c5
Hue: Create new config flow when auth is lost ( #28204 )
...
* Hue: Create new config flow when auth is lost
* Fix tests
* Fix tests
* Comments
* Lint
2019-10-28 08:45:08 -07:00
Paulus Schoutsen
23289459ca
Update translations
2019-10-23 13:36:38 -07:00
javicalle
8bdec13bad
Move imports in hue component ( #28121 )
2019-10-22 22:58:57 -07:00
Bram Kragten
8e3d210818
Add remove function to hue sensors ( #27652 )
...
* Add remove function to sensors
* Fix + comments
* Update light.py
2019-10-18 15:41:11 -07:00
HomeAssistant Azure
d8e3255603
[ci skip] Translation update
2019-10-15 00:31:44 +00:00
HomeAssistant Azure
762a714d87
[ci skip] Translation update
2019-10-10 00:31:40 +00:00
Ville Skyttä
761d7f21e9
Upgrade pylint ( #27279 )
...
* Upgrade pylint to 2.4.2 and astroid to 2.3.1
https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2
* unnecessary-comprehension fixes
* invalid-name fixes
* self-assigning-variable fixes
* Re-enable not-an-iterable
* used-before-assignment fix
* invalid-overridden-method fixes
* undefined-variable __class__ workarounds
https://github.com/PyCQA/pylint/issues/3090
* no-member false positive disabling
* Remove some no longer needed disables
* using-constant-test fix
* Disable import-outside-toplevel for now
* Disable some apparent no-value-for-parameter false positives
* invalid-overridden-method false positive disables
https://github.com/PyCQA/pylint/issues/3150
* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
HomeAssistant Azure
2c6a869bc6
[ci skip] Translation update
2019-10-06 00:32:15 +00:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
HomeAssistant Azure
b04a70995e
[ci skip] Translation update
2019-09-27 00:32:12 +00:00
Bram Kragten
b75639d9d1
Remove lamps and groups from ha when removed from Hue ( #26881 )
...
* Remove light when removed from hue
* add remove_config_entry_id
* Review + bump aiohue
* lint
* Add tests
2019-09-25 14:00:18 -07:00
HomeAssistant Azure
771c674e90
[ci skip] Translation update
2019-09-17 00:32:14 +00:00
HomeAssistant Azure
0b1f389c76
[ci skip] Translation update
2019-09-07 00:32:45 +00:00
Franck Nijhof
f9edec19ad
Use literal string interpolation in integrations H-J (f-strings) ( #26380 )
2019-09-03 17:27:14 +02:00
Paulus Schoutsen
e69953fe2d
Update translations
2019-08-28 12:45:48 -07:00
Paulus Schoutsen
cf2d927f14
Use init_subclass for Config Entries ( #26059 )
...
* Use init_subclass for Config Entries
* Ignore type
2019-08-20 10:46:51 -07:00
Paulus Schoutsen
57ef721d5d
Hue tweak registered device type + discovery exception ( #25977 )
...
* Include location name in create user
* Guard against no host in context
* Fix tests and typing
2019-08-16 16:19:00 -07:00
Paulus Schoutsen
87119472a3
Update translations
2019-08-11 20:42:50 -07:00
Ville Skyttä
a54ade1189
Spelling fixes ( #25666 )
2019-08-02 23:20:06 +02:00
Paulus Schoutsen
37d78af42c
Add translations
2019-07-31 16:16:40 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
5f5c541f2f
Update translations
2019-07-10 10:50:50 -07:00
Paulus Schoutsen
e841f568c1
Update translations
2019-06-24 08:27:46 -07:00
Paulus Schoutsen
ca70b96005
Update translations
2019-06-18 11:54:56 -07:00
Save me
5ab1996d3f
Add sensitivity and sensitvity_max attributs for binary sensor ( #24438 )
...
* Add sensitivity ans sensitvity_max attributs for binary sensor
* Update binary_sensor.py
* Update binary_sensor.py
* Update binary_sensor.py
* Update binary_sensor.py
2019-06-17 09:33:56 -07:00
Paulus Schoutsen
92816b57ef
Update translations
2019-06-14 14:53:13 -07:00
Save me
a6a3555684
Add attributs and fix lightlevel inconsistency for LightLevel sensor ( #24439 )
...
* Add attributs and fix state level
* Update sensor.py
* Update sensor.py
2019-06-11 10:41:20 -07: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
Penny Wood
84e6813779
Rename via_hub to via_device ( #24360 )
...
* Rename via_hub to via_device
* Fixed registry interactions
2019-06-10 09:10:44 -07:00
Paulus Schoutsen
0dc0706eb2
Add more HomeKit models for discovery ( #24391 )
...
* Add more HomeKit models for discovery
* Discover Tradfri with HomeKit
* Add Wemo device info
* Allow full match for HomeKit model
* Fix tests
2019-06-07 22:59:51 -07:00
Paulus Schoutsen
14c0ada9ac
Update translations
2019-06-04 08:50:48 -07: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
Paulus Schoutsen
fd3902f7e7
update translations
2019-05-29 10:16:58 -07:00
Paulus Schoutsen
9debbfb1a8
Add SSDP integration ( #24090 )
...
* Add SSDP integration
* Fix tests
* Sort all the things
* Add netdisco to test requirements
2019-05-26 19:48:27 -07:00
terual
bad9ac5395
Fix Hue bridge timeout ( #24084 )
...
* Change timeout from 5 seconds to 10 seconds
Underpowered platforms timeout during configuration/discovery of a Hue bridge on a new install. Increasing this timeout fixes this.
2019-05-24 15:55:13 -07:00
Paulus Schoutsen
806903ffe0
Downgrade Hue warning ( #24033 )
2019-05-22 14:59:16 +02:00
Paulus Schoutsen
1e22c8daca
Automatically generate config flow list ( #23802 )
...
* Add config flow to manifest.json
* Still load config flows via config flow platform
* Fix typo
* Lint
* Update config_flows.py"
* Catch import error when setting up entry
* Lint
* Fix tests
* Fix imports
* Lint
* Fix Unifi tests
* Fix translation test
* Add homekit_controller config flow
2019-05-13 01:16:55 -07:00
Paulus Schoutsen
e51925fc58
Update translations
2019-05-08 20:20:58 -07:00
Steven Looman
6e7a7ba4a0
Fix upnp logger name ( #23724 )
...
* Fix upnp logger name
* Fix more loggers
2019-05-07 15:52:48 -07:00
Markus Jankowski
264e70922b
Fix effects on HUE integration for Osram bulbs ( #22789 )
...
* Fix hue effect for others
* New suggestion
* switched implementation to remove colorloop for osram bulbs
* Check ATTR_EFFECT in kwargs
* Fix tests
2019-05-07 09:53:14 -07:00
Richard Mitchell
482cb0146a
Fix Hue sensor integration with multiple bridges. ( #23713 )
2019-05-07 09:45:04 -07:00
Paulus Schoutsen
26bf1b2173
Fix Hue sensors returning None value ( #23478 )
2019-04-27 13:27:17 -07:00
Richard Mitchell
845d81bdae
Correct calculation and units of light level values. ( #23309 )
2019-04-22 21:28:40 -07:00
cgtobi
31e514ec15
Add missing services.yaml file for hue ( #23217 )
...
* Add hue services.yaml
* Add lifx services.yaml
* Add lutron services.yaml
* Update lifx services.yaml
* Update hue services.yaml
* Revert lifx services.yaml as it is not necessary
* Remove hue from lights/services.yaml
2019-04-19 14:53:58 -07:00
Richard Mitchell
c899e2a662
Name sensors correctly ( #23208 )
...
* Hue motion senors are motion sensors, not presence sensors.
* Name the sensors 'motion' instead of 'presence' - match the HA paradigm.
2019-04-19 11:01:54 -07:00
Paulus Schoutsen
a52f96b23a
Add stub services.yaml and make validation mandatory ( #23213 )
2019-04-18 15:13:35 -07:00
Richard Mitchell
f57191e8dd
Hue motion senors are motion sensors, not presence sensors. ( #23193 )
2019-04-18 08:53:02 -07:00
Richard Mitchell
474ac8b09e
Add basic support for native Hue sensors ( #22598 )
...
* Add basic support for native Hue sensors
* Update coveragerc
* Simplify attributes
* Remove config option
* Refactor and document device-ness and update mechanism
* Entity docstrings
* Remove lingering config for sensors
* Whitespace
* Remove redundant entity ID generation and hass assignment.
* More meaningful variable name.
* Add new 'not-darkness' pseudo-sensor.
* Refactor sensors into separate binary, non-binary, and shared modules.
* formatting
* make linter happy.
* Refactor again, fix update mechanism, and address comments.
* Remove unnecessary assignment
* Small fixes.
* docstring
* Another refactor: only call API once and make testing easier
* Tests & test fixes
* Flake & lint
* Use gather and dispatcher
* Remove unnecessary whitespace change.
* Move component related stuff out of the shared module
* Remove unused remnant of failed approach.
* Increase test coverage
* Don't get too upset if we're already trying to update an entity before it has finished adding
* relative imports
2019-04-17 22:13:03 -07:00
Paulus Schoutsen
6a2da9f9a5
load cleanups ( #23112 )
...
* load cleanups
* Remove unused methods
* Allow importing requirements at the top of a file
* Fix test
* Lint
* Install reqs ASAP when loading platforms
2019-04-15 16:45:46 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
0d2646ba25
Update translations
2019-04-09 08:34:20 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Paulus Schoutsen
9d21afa444
Update translations
2019-03-27 21:32:58 -07:00
Paulus Schoutsen
72bb94de96
Update translations
2019-03-21 12:57:20 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Paulus Schoutsen
78217fa9b0
Update translations
2019-02-27 16:34:13 -08:00
starkillerOG
921efbdfef
Philips Hue: Add bridge update prompt ( #21119 )
...
* Add a prompt if bridge update is available.
* Change logger warning for light update
The self.light.swupdatestate only checks for updates of that specific light, it does not check for updates of the bridge.
Theirfore the warning message schould be updated.
* add space
* fix tests
* rename to swupdate2_bridge_state
* update aiohue to v1.9.1
* update aiohue to v1.9.1
* update aiohue to v1.9.1
2019-02-18 21:31:42 -08:00
Paulus Schoutsen
1130ccb325
Fix hue retry crash ( #21083 )
...
* Fix Hue retry crash
* Fix hue retry crash
* Fix tests
2019-02-15 08:43:30 -08:00
Fabian Affolter
3736120c6a
Update file header ( #21061 )
...
* Update file header
* Fix lint issue
* Fix lint issue
2019-02-14 16:01:46 +01:00
Paulus Schoutsen
882f5ed079
Don't directly update config entries ( #20877 )
...
* Don't directly update config entries
* Use ConfigEntryNotReady
* Fix tests
* Remove old test
* Lint
2019-02-13 20:36:06 -08:00