Commit graph

142 commits

Author SHA1 Message Date
Raman Gupta
24290e5d08
Add datetime platform ()
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]* () 2023-05-30 00:02:06 +03:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ()
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures () 2023-05-25 13:45:19 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants () 2023-05-02 22:08:09 +02:00
Raman Gupta
c0d0c89293
Add time platform () 2023-04-30 22:33:51 +02:00
Raman Gupta
d138bbe26e
Add date platform () 2023-04-30 20:34:57 +02:00
Paulus Schoutsen
a203149133
Allow entity names for STT entities ()
* Allow entity names for STT entities

* Fix tests
2023-04-23 23:06:34 -04:00
Martin Hjelmare
473cbf7f9b
Add stt entity ()
* 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 ()
Add freezer to known fixtures in pylint
2023-03-16 22:39:41 -04:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* 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) () 2023-02-11 08:26:13 +01:00
epenet
3052de3e8e
Add type hints to integration tests (d-e) () 2023-02-08 13:01:44 +01:00
epenet
59ca7780fa
Add typing to tests with single hass argument () 2023-02-07 15:01:16 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 () 2023-01-20 13:52:46 +01:00
Michael
2850583085
Replace the usage of unit constants by enumerations in Tests [a-e] () 2023-01-15 14:44:01 +01:00
Erik Montnemery
7621c450c7
Add kitchen_sink integration () 2023-01-10 17:31:47 +01:00
Erik Montnemery
d2fc3a22e2
Drop title from repairs flows () 2022-12-10 11:43:22 +01:00
Erik Montnemery
a038314d8b
Add display unit to WS recorder/get_statistics_metadata () 2022-11-28 13:46:57 -05:00
Raman Gupta
003e4224c8
Add text platform ()
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 () 2022-11-24 14:54:41 +01:00
Erik Montnemery
607a0e7697
Reduce size of get_statistics_during_period WS API response () 2022-11-16 17:36:30 +01:00
epenet
e84e5f134e
Use US_CUSTOMARY_SYSTEM in tests ()
* 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 ()
* 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 ()
* 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 () 2022-09-30 08:38:44 +02:00
epenet
0d696b84b2
Cleanup root component imports in tests () 2022-09-21 06:57:41 -10:00
Erik Montnemery
cd6697615f
Validate units when importing statistics () 2022-09-21 12:08:53 -04:00
Erik Montnemery
dae00c70de
Allow selecting display unit when fetching statistics () 2022-09-20 17:43:57 -04:00
epenet
8cc0c4dbba
Adjust root-import in demo humidifier tests () 2022-09-19 15:48:01 +02:00
epenet
7bc2712142
Adjust root-import in tests ()
* 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 () 2022-09-01 14:03:37 -04:00
Erik Montnemery
008ac8d10d
Improve statistics metadata WS API () 2022-08-31 11:30:45 +02:00
epenet
7eb8e1f25d
Improve type hints in demo [1/3] () 2022-08-28 17:51:10 -05:00
Erik Montnemery
ac9ba8f231
Improve demo test coverage () 2022-08-25 10:39:51 -05:00
Erik Montnemery
c741d9d045
Update integrations to import issue_registry from helpers ()
* 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 () 2022-08-24 11:09:23 +02:00
Erik Montnemery
b366090175
Allow creating fixable repairs issues without flows ()
* Allow creating fixable repairs issues without flows

* Add test

* Adjust test
2022-08-05 12:07:51 +02:00
Paulus Schoutsen
b0f877eca2
Add issue_domain to repairs () 2022-07-27 22:53:51 +02:00
Erik Montnemery
fb4aff25a2
Create issues in demo integration ()
* Create issues in demo integration

* Add unfixable non-expiring issue

* Update test

* Adjust tests

* update translations

* add hassfest translation schema

* Update homeassistant/components/demo/translations/en.json

Co-authored-by: Zack Barett <zackbarett@hey.com>

* Rename Resolution Center -> Repairs

* Update homeassistant/components/demo/strings.json

Co-authored-by: Zack Barett <zackbarett@hey.com>

* Adjust hassfest to require description or fix_flow

* Update homeassistant/components/demo/repairs.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update tests/components/demo/test_init.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add missing translation strings

* black

* Adjust repairs imports

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Zack Barett <zackbarett@hey.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-20 14:46:06 +02:00
Shay Levy
d56a487169
Fix CI failure due to integrations leaving dirty known_devices.yaml () 2022-07-02 11:20:40 -07:00
G Johansson
90e1fb6ce2
Weather unit conversion ()
Co-authored-by: Erik <erik@montnemery.com>
2022-06-23 10:48:30 +02:00
Erik Montnemery
28ebab9c5a
Simplify waiting for recorder in tests () 2022-04-25 12:04:47 +02:00
J. Nick Koston
f1b400feaf
Revert changes from part 2 () 2022-04-21 10:50:00 -10:00
Franck Nijhof
bfc82b030f
Replace Climate CURRENT_HVAC_* constants with HVACAction enum () 2022-04-20 13:41:05 -07:00
Franck Nijhof
a22f36178f
Replace Climate HVAC_MODE_* constants with HVACMode enum ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-20 13:20:53 +02:00
J. Nick Koston
309424d3b9
Prevent tests changing units from affecting other tests ()
* Prevent tests changing temperature_unit from affecting other tests

* tweak
2022-04-19 11:38:52 -10:00
J. Nick Koston
fe6a4bfb1d
Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-09 09:05:54 -10:00
Franck Nijhof
b644e7ed0f
Set brand icon as entity picture on update entities ()
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
2022-04-03 20:38:05 +02:00
Franck Nijhof
17403f930f
Add EntityFeature enum to Media Player () 2022-04-02 20:58:23 -07:00