Franck Nijhof
60817cb8ed
Use event time for sun is_up and is_set conditions ( #175240 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2026-07-01 14:00:28 +02:00
Erik Montnemery
01350e8f15
Fix exception in legacy sun condition ( #174811 )
2026-06-25 17:40:36 +02:00
Erik Montnemery
b6b165fd00
Improve tests of sun conditions and triggers ( #174805 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-06-25 12:56:49 +02:00
Erik Montnemery
de9d9c66c1
Add additional sun conditions ( #174537 )
2026-06-24 16:00:08 +02:00
Erik Montnemery
e8824bedf5
Add additional sun triggers ( #174485 )
2026-06-23 14:23:29 +02:00
Franck Nijhof
34a70a9210
Clean up deprecated solar_rising entity from sun integration ( #174079 )
2026-06-17 06:44:16 +02:00
epenet
88525955ce
Remove import annotations from tests ( #169527 )
2026-04-30 09:30:46 +02:00
Erik Montnemery
deefcbcbe4
Remove stub_blueprint_populate test fixture ( #161288 )
2026-01-20 15:46:06 +01:00
karwosts
972ed4b27f
Finish removal of sensor.sun_solar_rising ( #157606 )
2025-12-01 09:26:54 +01:00
Artur Pragacz
cf1a745283
Move condition-specific fields into options ( #152635 )
2025-09-25 15:55:50 +02:00
karwosts
5b4c309170
Create a deprecation/repair for sensor.sun_solar_rising ( #146462 )
...
* Create a deprecation/repair for `sensor.sun_solar_rising`
* test
* Update homeassistant/components/sun/strings.json
2025-06-11 11:02:14 +02:00
karwosts
33fc700952
Make sun solar_rising a binary_sensor ( #140956 )
...
* Make sun solar_rising a binary_sensor.
* Add a state translation
* code review
* fix test
* move PLATFORMS
* Update strings.json
2025-06-02 10:32:48 +02:00
Erik Montnemery
0128d85999
Move sun conditions to the sun integration ( #144742 )
2025-05-12 23:03:37 +01:00
Erik Montnemery
dfd86d56ec
Convert test fixtures to async ( #142052 )
2025-04-02 14:05:07 +02:00
epenet
d0a188b86d
Standardize homeassistant imports in component tests (m-z) ( #136807 )
2025-01-29 08:57:57 +01:00
epenet
b43379be7d
Standardize helpers.xxx_registry imports ( #136688 )
...
Standardize registry imports
2025-01-28 08:48:34 +01:00
epenet
4b4b17e774
Improve hass type hints for autouse fixtures in tests ( #121311 )
2024-07-05 15:49:22 +01:00
epenet
8819a9aa52
Use service_calls fixture in sun tests ( #120990 )
2024-07-02 12:29:51 +02:00
epenet
2c7022950c
Fix import-outside-toplevel pylint warnings in tests ( #119389 )
2024-06-11 14:57:50 +02:00
epenet
20b5aa3e0e
Move entity_registry_enabled_by_default to decorator [q-z] ( #118793 )
2024-06-04 13:38:32 +02:00
epenet
98d24dd276
Improve typing for calls fixture in tests (m-z) ( #118350 )
...
* Improve typing for `calls` fixture in tests (m-z)
* More
* More
2024-05-29 09:30:41 +02:00
epenet
e58d060f82
Use registry fixtures in tests (s) ( #118295 )
2024-05-28 15:41:03 +02:00
Sid
9bf87329da
Enable Ruff FLY002 rule ( #115112 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-04-12 09:04:16 +02:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
J. Nick Koston
77a94ea515
Speed up loading sun ( #113544 )
...
* Speed up loading sun
* Speed up loading sun
* Speed up loading sun
* adjust
* tweak
2024-03-15 23:01:49 +01:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
Sheldon Ip
6c65db2036
Add rising sensor to sun ( #93276 )
2023-10-10 21:12:43 +02:00
J. Nick Koston
1dadfcd52c
Avoid polling in sun sensor entities ( #100693 )
2023-09-22 11:16:37 +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
Franck Nijhof
67d5ca4894
Mark entities from the sun as diagnostic ( #92909 )
2023-05-11 18:27:19 +09:00
epenet
7b3a932cd9
Remove incorrect constant usage in test ( #91198 )
2023-04-11 10:00:17 +02:00
J. Nick Koston
d0d4ab6056
Require a list of entity ids when fetching history ( #90992 )
2023-04-08 16:14:44 -10:00
G Johansson
92beb48a41
Add sensor platform to Sun ( #81045 )
...
* Sun sensor
* remove extra attr
* Add tests
* Add back attributes
* position sensors disabled default
* entity id
* unique id
* test init to attributes
* Fix test init
* Fix test sensor
* test unique id
* uom
* remove rising
* Remove not needed uom property
* Fix reload issue
* degree
2023-03-26 07:24:43 +08:00
J. Nick Koston
1c57339ec3
Refactor recorder tests to use recorder history API ( #89565 )
2023-03-11 21:51:16 -05:00
Erik Montnemery
9989a4787b
Fix recorder platform tests ( #88330 )
2023-02-17 08:22:15 -06:00
epenet
dab8557951
Add type hints to integration tests (part 21) ( #88233 )
2023-02-16 11:15:26 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) ( #87706 )
2023-02-08 08:12:54 -08:00
Franck Nijhof
c56832bb2c
Enable Ruff SIM300 ( #86793 )
2023-01-30 11:03:23 +01:00
Franck Nijhof
e4a78420b8
Enable Ruff PT013 ( #86757 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2023-01-27 09:09:46 +01:00
Franck Nijhof
bcf32f8331
Mark required fields in FlowResult typedict ( #84811 )
...
* Mark required fields in FlowResult typedict
* Remove unneeded asserts from tests
2022-12-30 12:01:45 +01: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
Franck Nijhof
dd266b7119
Remove elevation warning from sun ( #80239 )
2022-10-14 15:23:44 +02:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02: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
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
J. Nick Koston
fe6a4bfb1d
Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC ( #69643 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2022-04-09 09:05:54 -10:00
J. Nick Koston
bbcefd6fec
Exclude sun attributes from being recorded in the database ( #68887 )
2022-03-30 11:03:08 +02:00