Commit graph

151 commits

Author SHA1 Message Date
Marcel van der Veldt
fceb208381
Abort Hue config flow if bridge can not be reached ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-03-15 18:55:34 +01:00
epenet
d65dff3f9e
Adjust entity registry access in tests (2) () 2023-03-01 16:23:36 +01:00
Marcel van der Veldt
36e6a879ad
Bump aiohue library to version 4.6.2 ()
* Bump aiohue library to 4.6.2

* Fix long press (fixed in aiohue lib)

* fix test
2023-02-28 11:53:15 -05:00
Franck Nijhof
1e05697080
Enable Ruff B007 ()
* Enable Ruff B007

* Adjust existing cases
2023-02-17 21:08:18 -05:00
epenet
9404a107b2
Add type hints to integration tests (part 10) () 2023-02-13 10:25:26 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
epenet
37a2040d7b
Add type hints to integration tests (h-i) () 2023-02-08 18:12:56 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ()
* Add return type to tests without arguments

* Black

* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Marcel van der Veldt
f8c6e4c20a
Add support for Hue Smart Scenes (Natural Lights) ()
* Bump aiohue to 4.6.0

* fix device name for lights

* fix name for groups too

* ignore smart scenes

* bump to 4.6.1 instead

* Add support for Smart Scenes (Natural lights) in Hue

* update base entity class

* fix test fixture

* update tests

* fix scene test

* fix typo

* use underlying scene controller

* use enum value

* update tests

* add current scene name within smart scene

* extra attributes are only valid if the scene is active

* Update v2_resources.json

* typo

* fix after merge
2023-01-30 23:32:37 -05:00
Marcel van der Veldt
fe583b7c4a
Remove SSDP discovery from Hue ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-01-16 19:56:46 +01:00
Marcel van der Veldt
c181fb6de0
Bump aiohue library to 4.6.1 ()
* Bump aiohue to 4.6.0

* fix device name for lights

* fix name for groups too

* ignore smart scenes

* bump to 4.6.1 instead

* fix test fixture

* update tests

* fix scene test
2023-01-09 10:37:03 -05:00
epenet
6b3c91bd6a
Cleanup ColorMode in tests () 2022-09-20 18:33:45 +02:00
epenet
25b1dfb53a
Cleanup EntityCategory in tests () 2022-09-20 10:49:44 -04:00
J. Nick Koston
7cad1571a2
Describe hue events in the logbook ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-19 22:21:09 -07:00
Erik Montnemery
573e966d74
Migrate hue v1 light to color_mode ()
* Migrate hue v1 light to color_mode

* Fix test

* Correct filter_supported_color_modes + add test

* Use ColorMode enum
2022-04-28 09:49:51 +02:00
Paulus Schoutsen
87dceaf238
Hue config flow to guard ipv6 ()
* Hue config flow to guard ipv6

* Use helper
2022-04-25 10:52:57 -07:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ()
* Mark device triggers from hidden or auxiliary entities as secondary

* Update tests
2022-04-21 08:01:32 +02:00
Marcel van der Veldt
09f6785956
Add virtual device/service for Hue groups () 2022-03-29 20:33:05 -07:00
Marcel van der Veldt
dbef90654f
Add effects feature to Hue lights () 2022-03-23 15:13:01 -07:00
Marcel van der Veldt
ccd8c7d5f8
Hue aggregated control for grouped lights () 2022-03-23 13:06:10 -07:00
Marcel van der Veldt
4fd0ed2474
Bump aiohue to 4.4.0 () 2022-03-23 13:03:14 +01:00
Marcel van der Veldt
dd1d7fdbab
Simplify Hue error handling a bit () 2022-03-22 21:59:06 -07:00
Marcel van der Veldt
cb190a7b17
Add (basic) diagnostics support for Hue integration ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-22 15:44:02 -08:00
Marcel van der Veldt
8f4ec89be6
Bump aiohue to version 4.1.2 () 2022-02-15 17:26:13 -08:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses () 2022-02-11 16:46:17 -06:00
Franck Nijhof
3f7275a9c7
Give scenes last activated state () 2022-01-07 19:02:32 +01:00
Marcel van der Veldt
f999266c9a
Add additional service to set advanced Hue scene options () 2022-01-04 21:39:08 -08:00
Marcel van der Veldt
055fb99938
Hue allow per-device availability override ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-30 20:46:52 -08:00
Marcel van der Veldt
497bfc1c8f
Normalize Hue colortemp if value outside of bounds () 2021-12-29 15:13:52 +01:00
Marcel van der Veldt
c5bdf858a8
Fix short flash effect in Hue integration () 2021-12-29 14:21:38 +01:00
Christian Manivong
772428e70f
Round Hue transition to steps of 100ms ()
* Adding round() to transition before firing turn_on, turn_off 
2021-12-23 15:08:24 +01:00
Marcel van der Veldt
eb37668036
Fix Hue button events () 2021-12-23 14:24:37 +01:00
Ville Skyttä
c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* () 2021-12-20 22:18:53 +01:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler () 2021-12-15 23:25:40 +02:00
Marcel van der Veldt
01c8e5f49d
Fix turn_off with transition for grouped Hue lights ()
* fix turn_off with transition for grouped hue lights

* add test
2021-12-14 11:24:37 -08:00
Marcel van der Veldt
438d19f72b
Fix Flash effect for Hue lights () 2021-12-13 16:27:58 -08:00
Marcel van der Veldt
4ad90b33c9
Fix Hue transition calculation () 2021-12-12 14:11:41 -08:00
Marcel van der Veldt
0abfc90870
Fix typo in Hue device triggers - use enum value () 2021-12-11 17:12:33 +01:00
Marcel van der Veldt
0d36b07d10
Small fix for device triggers and events on Hue integration () 2021-12-10 15:11:34 -08:00
Marcel van der Veldt
7c7df5bb51
Change check for existence of options flow ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-07 12:50:34 -08:00
Marcel van der Veldt
9e6e9774d1
Remove colon from default entity name in Hue integration () 2021-12-06 15:17:17 -08:00
Marcel van der Veldt
bd8bba9e3f
Fix migration of entities of Hue integration ()
* fix device name in log

* Fix Hue migration for all id versions

* fix tests

* typo

* change to bit more universal approach

* fix test again

* formatting
2021-12-06 08:24:59 -08:00
Marcel van der Veldt
b98bc64604
Disable options flow for Hue V2 bridges () 2021-12-05 09:47:44 -08:00
Marcel van der Veldt
5d0cf4cb95
Fix tests for Hue integration ()
* fix tests

make sure the migration code is not called in all other tests

* only patch v2 check where needed
2021-12-01 14:53:30 +01:00
Marcel van der Veldt
19b4cc7119
Hue handle device update () 2021-11-30 10:14:51 -08:00
epenet
d75785d701
Use dataclass properties in hue discovery ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 16:36:35 +01:00
epenet
22bdd38583
Use SsdpServiceInfo for SOURCE_SSDP tests (part 4) ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 17:13:52 -06:00
epenet
31b033ac25
Update ZeroconfServiceInfo in tests (g-m) ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 09:42:38 -06:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class () 2021-11-22 08:38:06 -08:00