Commit graph

35 commits

Author SHA1 Message Date
Michael
910c991a58
Store runtime data inside the config entry in Sun (#116808)
* store runtime data inside the config entry

* move to entry.async_on_unload()
2024-05-04 23:39:12 +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
J. Nick Koston
c466008fb4
Migrate sun to use single_config_entry (#113370) 2024-03-14 10:45:59 +01:00
Marc Mueller
930a396712
Add empty line after module docstring [s] (#112704) 2024-03-08 14:33:51 +01:00
J. Nick Koston
1dadfcd52c
Avoid polling in sun sensor entities (#100693) 2023-09-22 11:16:37 +02:00
Erik Montnemery
df73850f56
Move definition of attributes excluded from history to entity classes (#100430)
* Move definition of attributes excluded from history to entity classes

* Revert change which should be in a follow-up PR

* Fix sun unrecorded attributes

* Fix input_select unrecorded attributes
2023-09-21 15:02:47 +02:00
Martin Hjelmare
de4e3b5ffe
Disable sun.sun no platform log (#95450) 2023-06-28 17:06:23 +02:00
Erik Montnemery
8896b27f70
Add empty config schema to integrations p-s (#93700) 2023-05-29 20:57:18 +02: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
Franck Nijhof
dd266b7119
Remove elevation warning from sun (#80239) 2022-10-14 15:23:44 +02:00
epenet
19bee11a01
Improve sun typing (#78298) 2022-09-12 21:34:35 +02:00
J. Nick Koston
4dceff88fc
Use new async_process_integration_platform_for_component helper in sun (#70183) 2022-04-18 08:13:30 -07:00
J. Nick Koston
d6619dd4bc
Fix reloading the sun integration (#69495) 2022-04-06 16:06:22 -07:00
J. Nick Koston
bbcefd6fec
Exclude sun attributes from being recorded in the database (#68887) 2022-03-30 11:03:08 +02:00
Erik Montnemery
2fcced333d
Add config flow for sun (#68295)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-18 10:12:15 +01:00
J. Nick Koston
ee38203e1d
Add missing callback decorator to sun (#67840) 2022-03-08 10:16:41 +01:00
epenet
00ec874389
Add init type hints [s] (#63193)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:29:52 +01:00
FMKaiba
09eb74fd9d
Upgrade Astral to 2.2 (#48573) 2021-04-02 00:29:08 +02:00
Erik Montnemery
346a724ac3
Mark base components' state_attribute @final, rename others to extra_state_attributes (#48161)
* Mark base state_attributes @final, rename others to extra_state_attributes

* Fix calendar, update tests
2021-03-21 10:38:24 +01:00
springstan
a2c3c33b22
Use core GitHub URL in all files (#41089) 2020-10-03 00:04:11 +02:00
Phil Bruckner
a99efcb5c2
Fix sun integration vulnerability to sudden large clock changes (#39335)
* Fix sun integration vulnerability to sudden large clock changes

* Fix update_sun_position as well
2020-08-28 13:09:43 -05:00
Daniel Hjelseth Høyer
9fe142a114
Prevent unnecessary updates of sun component (#38169) 2020-07-24 10:46:05 -10:00
J. Nick Koston
89a9634d35
Use eventloop for scheduling (#37184)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-29 09:39:24 -07:00
springstan
b41cbe9885
Add www. to all documentation links (#32063)
* Add www. to all documentation links

* Fix broken redirect uri test
2020-02-21 16:10:02 -08:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling (#30500)
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Bas Nijholt
23b92b2a56 Sort imports according to PEP8 for components starting with "S" (#29777) 2019-12-09 14:38:01 +01:00
Ville Skyttä
381d423fec Upgrade mypy to 0.740 (#27913)
* Upgrade mypy to 0.740

http://mypy-lang.blogspot.com/2019/10/mypy-0740-released.html

* Type hint additions

* Type fixes

* Remove no longer needed type ignores and casts

* Disable untyped definition checks in bunch of files
2019-10-19 11:35:57 -07:00
Ville Skyttä
f259ff17d5
Type hint additions (#26831)
* Type hint additions

* Remove optional from sidebar_icon comment

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* Remove optional from sidebar_title comment

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* Fix issues after rebase and mypy 0.730
2019-09-29 20:07:49 +03:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Penny Wood
d63c44f778 Fixed issue #24335 (#24612) 2019-06-19 07:25:15 -07:00
Penny Wood
4cb1d77783 Fix for sun issues (#24309) 2019-06-07 23:21:41 -07:00
Penny Wood
9da74dda43
Quiet the chatty sun.sun (#23832)
* Split up method to allow caching event

* Lower frequency of updates.

* Code review patches.

* Minor changes to test

* Skip end of period at fixed multiple of delta.
Improved documentation.
2019-05-15 15:02:29 +08:00
Erik Montnemery
102beaa044 Add debug prints to sun (#23598)
* Add debug prints to sun

* Review comment
2019-05-07 09:37:08 -07:00
Fabian Affolter
127c55e0c1
Update file header (#21023)
* Update file header

* Update file header

* Update file header

* Update file header

* Update file header

* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
b8cc547fa3
Move components to folders (#20774)
* Move all components into folders

* Move component tests into folders

* Fix init moving

* Move tests

* Lint

* Update coverage

* Fix service descriptions

* Update CODEOWNERS
2019-02-05 19:31:15 -08:00
Renamed from homeassistant/components/sun.py (Browse further)