Jan Bouwhuis
953a212dd6
Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component ( #104560 )
...
* Use ServiceValidationError for fan preset_mode
* Use _valid_preset_mode_or_raise to raise
* Move preset_mode validation to entity component
* Fix bond fan and comments
* Fixes baf, fjaraskupan and template
* More integration adjustments
* Add custom components mock and test code
* Make NotValidPresetModeError subclass
* Update homeassistant/components/fan/strings.json
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Keep bond has_action validation
* Move demo test asserts outside context block
* Follow up comment
* Update homeassistant/components/fan/strings.json
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Fix demo tests
* Remove pylint disable
* Remove unreachable code
* Update homeassistant/components/fan/__init__.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Use NotValidPresetModeError, Final methods
* Address comments
* Correct docst
* Follow up comments
* Update homeassistant/components/fan/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-29 13:56:51 +01:00
J. Nick Koston
f91583a0fc
Add support for family to aiohttp session helper ( #102702 )
2023-10-24 18:40:39 -05:00
G Johansson
3c3f512583
Remove setup_platform for demo ( #100867 )
2023-10-15 23:12:41 +02:00
Tudor Sandu
542ab2dd76
Fix ignored argument in service call for demo climate ( #101137 )
...
Fix service call for demo climate
2023-09-29 23:06:41 -04:00
Jan Bouwhuis
714a04d603
Add service turn_on and turn_off service for water_heater ( #94817 )
2023-07-25 10:16:05 +02:00
G Johansson
4e30056830
Add new Forecasting to Weather ( #75219 )
...
* Add new Forecasting to Weather
* Add is_daytime for forecast_twice_daily
* Fix test
* Fix demo test
* Adjust tests
* Fix typing
* Add demo
* Mod demo more realistic
* Fix test
* Remove one weather
* Fix weather example
* kitchen_sink
* Reverse demo partially
* mod kitchen sink
* Fix twice_daily
* kitchen_sink
* Add test weathers
* Add twice daily to demo
* dt_util
* Fix names
* Expose forecast via WS instead of as state attributes
* Regularly update demo + kitchen_sink weather forecasts
* Run linters
* Fix rebase mistake
* Improve demo test coverage
* Improve weather test coverage
* Exclude kitchen_sink weather from test coverage
* Rename async_update_forecast to async_update_listeners
* Add async_has_listeners helper
* Revert "Add async_has_listeners helper"
This reverts commit 52af3664bb06d9feac2c5ff963ee0022077c23ba.
* Fix rebase mistake
---------
Co-authored-by: Erik <erik@montnemery.com>
2023-07-21 17:30:48 +02:00
Erik Montnemery
39208a3749
Remove unsupported vacuum service handlers ( #95787 )
...
* Prevent implementing unsupported vacuum service handlers
* Remove unsupported service handlers
* Update test
2023-07-10 15:03:40 +02:00
Erik Montnemery
96c71b214f
Check supported features in calls to vacuum services ( #95833 )
...
* Check supported features in vacuum services
* Update tests
* Add comment
2023-07-10 13:05:47 +02:00
Denis Shulyaka
ae21ab2945
Add `action` attribute to Humidifier entity ( #95131 )
...
* Add HumidifierAction StrEnum
* Add action attribute to HumidifierEntity
* Update strings.json
* Add action to demo humidifier
* Add tests
* Fix imports
* Add 'off' humidifier action
* Set action to 'off' when state is 'off'
* Add 'off' action to strings.json
* Test that action sets to "off" when state is "off"
* Use is_on instead of state
* Fix typo
* black
2023-06-28 13:21:17 +02:00
Denis Shulyaka
185aaa9e07
Humidifier current humidity ( #94874 )
2023-06-20 09:43:33 +02:00
Erik Montnemery
f68ed8b7a0
Always setup demo platforms with device support from config entry ( #94601 )
...
* Always setup demo platforms with device support from config entry
* Update tests depending on the demo integration
2023-06-14 21:03:07 +02: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
Erik Montnemery
1b8c72e644
Remove legacy STT provider from the demo integration ( #94585 )
2023-06-14 14:55:50 +02:00
Raman Gupta
24290e5d08
Add `datetime` platform ( #81943 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-29 23:24:15 +02:00
Ville Skyttä
ced67e5800
Import `util.dt` as `dt_util` in `components/[a-d]*` ( #93756 )
2023-05-30 00:02:06 +03: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
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
Raman Gupta
c0d0c89293
Add `time` platform ( #81949 )
2023-04-30 22:33:51 +02:00
Raman Gupta
d138bbe26e
Add `date` platform ( #81948 )
2023-04-30 20:34:57 +02:00
Paulus Schoutsen
a203149133
Allow entity names for STT entities ( #91932 )
...
* Allow entity names for STT entities
* Fix tests
2023-04-23 23:06:34 -04:00
Martin Hjelmare
473cbf7f9b
Add stt entity ( #91230 )
...
* Add stt entity
* Update demo platform
* Rename ProviderEntity to SpeechToTextEntity
* Fix get method
* Run all init tests for config entry setup
* Fix and test metadata from header
* Test config entry unload
* Rename get provider entity
* Test post for non existing provider
* Test entity name before addition
* Test restore state
* Use register shutdown
* Update deprecation comment
2023-04-13 13:58:35 -04:00
epenet
ff8b91aeea
Add freezer to known test fixtures in pylint ( #89825 )
...
Add freezer to known fixtures in pylint
2023-03-16 22:39:41 -04: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
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
epenet
3052de3e8e
Add type hints to integration tests (d-e) ( #87699 )
2023-02-08 13:01:44 +01:00
epenet
59ca7780fa
Add typing to tests with single hass argument ( #87631 )
2023-02-07 15:01:16 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 ( #86192 )
2023-01-20 13:52:46 +01:00
Michael
2850583085
Replace the usage of unit constants by enumerations in Tests [a-e] ( #85932 )
2023-01-15 14:44:01 +01:00
Erik Montnemery
7621c450c7
Add kitchen_sink integration ( #85592 )
2023-01-10 17:31:47 +01:00
Erik Montnemery
d2fc3a22e2
Drop title from repairs flows ( #83627 )
2022-12-10 11:43:22 +01:00
Erik Montnemery
a038314d8b
Add display unit to WS recorder/get_statistics_metadata ( #82870 )
2022-11-28 13:46:57 -05:00
Raman Gupta
003e4224c8
Add `text` platform ( #79454 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-24 20:01:01 +01:00
Joakim Sørensen
d0390860fb
Add repair abort flow to demo integration ( #82614 )
2022-11-24 14:54:41 +01:00
Erik Montnemery
607a0e7697
Reduce size of get_statistics_during_period WS API response ( #82131 )
2022-11-16 17:36:30 +01:00
epenet
e84e5f134e
Use US_CUSTOMARY_SYSTEM in tests ( #80658 )
...
* Use US_CUSTOMARY_SYSTEM in tests
* Don't update test_unit_system
2022-10-20 15:42:23 +02: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
2de273500e
Remove state_unit_of_measurement from metadata DB table ( #79370 )
...
* Remove state_unit_of_measurement from metadata DB table
* Adjust test
2022-10-01 18:55:00 +02:00
Erik Montnemery
bc2dffabc4
Improve naming of units used in statistics ( #79276 )
2022-09-30 08:38:44 +02:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
Erik Montnemery
cd6697615f
Validate units when importing statistics ( #78891 )
2022-09-21 12:08:53 -04:00
Erik Montnemery
dae00c70de
Allow selecting display unit when fetching statistics ( #78578 )
2022-09-20 17:43:57 -04:00
epenet
8cc0c4dbba
Adjust root-import in demo humidifier tests ( #78772 )
2022-09-19 15:48:01 +02:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Erik Montnemery
e326dd2847
Fix demo external energy statistics ( #77665 )
2022-09-01 14:03:37 -04:00
Erik Montnemery
008ac8d10d
Improve statistics metadata WS API ( #77209 )
2022-08-31 11:30:45 +02:00
epenet
7eb8e1f25d
Improve type hints in demo [1/3] ( #77180 )
2022-08-28 17:51:10 -05:00
Erik Montnemery
ac9ba8f231
Improve demo test coverage ( #77301 )
2022-08-25 10:39:51 -05:00
Erik Montnemery
c741d9d045
Update integrations to import issue_registry from helpers ( #77305 )
...
* Update integrations to import issue_registry from helpers
* Update tests
2022-08-25 15:33:05 +02:00
Erik Montnemery
2497ff5a39
Add energy and gas sensors to demo integration ( #77206 )
2022-08-24 11:09:23 +02:00