puddly
016f2c7581
Improve ZHA group color modes ( #111669 )
...
* Set the color mode based on supported color modes
* Replace `zha` with `tuya` in unit test
2024-02-28 17:20:19 -05:00
Erik Montnemery
1764c031df
Warn when lights violate color mode rules ( #110336 )
...
* Warn when lights violate color mode rules
* Update test
* Remove redundant warning, add tests
* Improve test coverage
2024-02-12 17:43:50 +01:00
Erik Montnemery
4229c35fcd
Improve color mode handling in MockLight ( #109298 )
2024-02-02 09:49:32 +01:00
Erik Montnemery
c3de193e2e
Adjust color_mode checks when lights render effects ( #108737 )
...
* Adjust color_mode checks when lights render effects
* Improve comment
* Avoid calling effect property if light does not support effects
* Fix test
2024-01-24 15:44:45 +01:00
J. Nick Koston
e4a25825d3
Migrate light entity to use contains for LightEntityFeature with deprecation warnings ( #106622 )
2023-12-28 15:45:06 -10:00
Niccolò Maggioni
0232c8dcb0
Add temperature to the light color mode parameter fallbacks ( #86026 )
...
* Add color temperature to the color mode fallbacks
* Manually add ATTR_COLOR_TEMP since ATTR_COLOR_TEMP_KELVIN is pre-parsed
* Include the legacy ATTR_COLOR_TEMP attribute in the tests
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Add citation for McCamy's approximation formula
If still existing, also see page 3 of https://www.st.com/resource/en/application_note/an5638-how-correlated-color-temperature-is-calculated-by-vd6283-stmicroelectronics.pdf
* Update homeassistant/util/color.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-12-01 08:26:07 +01:00
Erik Montnemery
645f916cf4
Remove support for deprecated light attributes from light scenes ( #104254 )
2023-11-21 07:51:41 +01:00
Erik Montnemery
0304ac5a1b
Fix restore state for light when saved attribute is None ( #103096 )
2023-10-31 10:05:03 +01:00
Erik Montnemery
a6c5927976
Use real devices in light device condition tests ( #102756 )
2023-10-25 09:42:35 +02:00
Erik Montnemery
02a83740cc
Use real devices in light device action tests ( #102722 )
2023-10-24 21:38:24 +00:00
Erik Montnemery
691de148cf
Use real devices in light device trigger tests ( #102689 )
2023-10-24 21:58:37 +02:00
Paul Bottein
c98c18f25e
Return 'None' for light attributes when off instead of removing them ( #101946 )
2023-10-19 01:08:08 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Erik Montnemery
433d640071
Use entity registry id in light device actions ( #95271 )
2023-06-26 22:27:19 +02:00
Erik Montnemery
a338e7e242
Use entity registry id in toggle_entity device automations ( #94995 )
...
* Use entity registry id in toggle_entity device automations
* Update tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-26 09:59:01 +02:00
Erik Montnemery
fd822bce56
Replace assert_lists_same with pytest_unordered in integrations h-m ( #94901 )
2023-06-20 20:16:25 +02:00
J. Nick Koston
68cf796be8
Speed up entity service calls ( #94731 )
...
* Speed up entity service calls
- Avoid permissions check if the caller is an admin
- Use set intersection instead of linear search of entity platforms to find entities
* tweak
* fix light test to not use an admin user
2023-06-16 21:07:57 -04:00
Erik Montnemery
9a3077d64a
Always setup demo platforms with device support from config entry ( #94586 )
...
* Always setup demo platforms with device support from config entry
* Adjust test fixutres
* Update tests depending on the demo integration
2023-06-14 16:50:35 +02:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ( #93568 )
...
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures ( #93519 )
2023-05-25 13:45:19 +02:00
J. Nick Koston
41aa3e223e
Update light tests to avoid patching utcnow ( #93490 )
2023-05-24 15:21:40 -05:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
J. Nick Koston
d0d4ab6056
Require a list of entity ids when fetching history ( #90992 )
2023-04-08 16:14:44 -10:00
Erik Montnemery
ae127e7687
Change light white service call attribute to accept True ( #89803 )
2023-03-16 23:02:56 -04:00
J. Nick Koston
1c57339ec3
Refactor recorder tests to use recorder history API ( #89565 )
2023-03-11 21:51:16 -05:00
J. Nick Koston
e6c792deed
Add missing kelvin attributes to light recorder platform ( #88561 )
2023-02-21 14:23:53 -06:00
Erik Montnemery
9989a4787b
Fix recorder platform tests ( #88330 )
2023-02-17 08:22:15 -06:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
ea11a30a35
Add type hints to integration tests (part 13) ( #87998 )
2023-02-13 14:38:37 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
51a9f65a01
Clean up unnecessary registry mocks from Core tests ( #87726 )
2023-02-08 13:28:44 -06:00
epenet
f75ac17554
Add type hints to integration tests (j-m) ( #87704 )
2023-02-08 19:06:59 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
epenet
aa00114c2f
Add return type to async tests without arguments ( #87612 )
2023-02-07 10:26:56 +01:00
Michael Hansen
ea95abcb30
Use intent responses from home-assistant-intents ( #86484 )
...
* Use intent responses from home_assistant_intents
* Use error responses from home_assistant_intents
* Remove speech checks for intent tests (set by conversation now)
* Bump hassil and home-assistant-intents versions
* Use Home Assistant JSON reader when loading intents
* Remove speech checks for light tests (done in agent)
* Add more tests for code coverage
* Add test for reloading on new component
* Add test for non-default response
2023-01-23 22:38:41 -05:00
Michael Hansen
5aca996f22
HassTurnOn/Off intents to also handle cover entities ( #86206 )
...
* Move entity/area resolution to async_match_states
* Special case for covers in HassTurnOn/Off
* Enable light color/brightness on areas
* Remove async_register from default agent
* Remove CONFIG_SCHEMA from conversation component
* Fix intent tests
* Fix light test
* Move entity/area resolution to async_match_states
* Special case for covers in HassTurnOn/Off
* Enable light color/brightness on areas
* Remove async_register from default agent
* Remove CONFIG_SCHEMA from conversation component
* Fix intent tests
* Fix light test
* Fix humidifier intent handlers
* Remove DATA_CONFIG for conversation
* Copy ServiceIntentHandler code to light
* Add proper errors to humidifier intent handlers
2023-01-19 17:15:01 -06:00
Michael Hansen
ecaec0332d
Hassil intents ( #85156 )
...
* Add hassil to requirements
* Add intent sentences
* Update sentences
* Use hassil to recognize intents in conversation
* Fix tests
* Bump hassil due to dependency conflict
* Add dataclasses-json package contraints
* Bump hassil (removes dataclasses-json dependency)
* Remove climate sentences until intents are supported
* Move I/O outside event loop
* Bump hassil to 0.2.3
* Fix light tests
* Handle areas in intents
* Clean up code according to suggestions
* Remove sentences from repo
* Use home-assistant-intents package
* Apply suggestions from code review
* Flake8
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-01-07 16:20:21 -05:00
Erik Montnemery
31a787558f
Ensure recorder test fixture is setup before hass fixture ( #80528 )
...
* Ensure recorder test fixture is setup before hass fixture
* Adjust more tests
2022-10-19 07:58:47 +02:00
Erik Montnemery
7b247a79cf
Correct min/max mireds for lights which use K for color temp ( #79998 )
2022-10-10 16:45:38 +03:00
Erik Montnemery
2ee6ea9877
Adapt group to color temperature in K ( #79719 )
...
* Adapt group to color temperature in K
* Adjust tests
* Adjust tests
2022-10-10 14:57:22 +02:00
Erik Montnemery
47d0598e75
Use Kelvin as the preferred color temperature unit ( #79591 )
...
* Use Kelvin as the preferred white temperature unit
* Update homekit
* Adjust tests
2022-10-06 12:22:39 +02:00
Erik Montnemery
60c8d95a77
Remove white_value support from light ( #76926 )
2022-08-18 08:21:05 -04:00
Erik Montnemery
5f2b4001f3
Separate recorder database schema from other classes ( #72977 )
...
* Separate recorder database schema from other classes
* fix logbook imports
* migrate new tests
* few more
* last one
* fix merge
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 14:41:43 +02:00
Franck Nijhof
69e622b327
Clean up accessing intent helpers via hass ( #72028 )
2022-05-17 20:33:51 +02:00
Erik Montnemery
573e966d74
Migrate hue v1 light to color_mode ( #69275 )
...
* 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
Erik Montnemery
28ba572d9d
Only apply color from light profile if no color specified ( #70640 )
2022-04-25 07:56:07 -07:00
Erik Montnemery
28ebab9c5a
Simplify waiting for recorder in tests ( #70647 )
2022-04-25 12:04:47 +02:00
Erik Montnemery
982e314de6
Use recorder_mock in tests ( #70363 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-22 19:29:44 -10:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ( #70335 )
...
* Mark device triggers from hidden or auxiliary entities as secondary
* Update tests
2022-04-21 08:01:32 +02:00
Erik Montnemery
150f173eed
Mark device conditions from hidden or auxiliary entities as secondary ( #70333 )
2022-04-20 21:41:59 +02:00