Commit Graph

17 Commits (e541bcd54d050bd5acf63137786cc1ec70fa6520)

Author SHA1 Message Date
FMKaiba 09eb74fd9d
Upgrade Astral to 2.2 () 2021-04-02 00:29:08 +02:00
Franck Nijhof 38d14702fa
Remove HomeAssistantType alias from helpers () 2021-03-27 12:55:24 +01:00
Franck Nijhof dc15f243e6
Upgrade pyupgrade to v2.11.0 () 2021-03-22 13:29:39 +01:00
Marc Mueller 6fb2e63e49
Update typing 02 () 2021-03-17 18:34:19 +01:00
Ville Skyttä dc880118a4
Lint suppression cleanups ()
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Franck Nijhof 9b7c39d20b
Postponed evaluation of annotations in core ()
* Postponed evaluation of annotations in core

* Remove unneeded future
2021-02-12 10:58:20 +01:00
tkdrob c2302784c2
Use core constants for helpers () 2021-02-08 22:53:17 +01:00
Franck Nijhof b9b1cee403
Enable pylint import-outside-toplevel () 2020-04-04 17:07:36 +02:00
Bas Nijholt 67c56c860d Sort imports according to PEP8 for 'homeassistant' folder ()
Components are already done
2019-12-09 16:42:10 +01:00
Franck Nijhof 2f0eb07624 Migrate legacy typehints in core to PEP-526 ()
* Migrate legacy typehints in core to PEP-526

* Fix one type
2019-09-03 20:36:04 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Penny Wood 9da74dda43
Quiet the chatty sun.sun ()
* 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
Ville Skyttä 922f34f72d Add more type hints to helpers ()
* Test typing for helpers.__init__ and temperature

* Add type hints to helpers.sun

* Add type hints to helpers.signal

* Add type hints to helpers.entity_values

* Add type hints to helpers.dispatcher
2018-11-04 22:46:42 +01:00
Ville Skyttä 9c840f93f0 Use const.SUN_EVENT_* more () 2018-10-31 09:10:28 +01:00
Paulus Schoutsen ca54bbfcc9 RFC: Use bind_hass for helpers ()
* Add Helpers bind_hass functionality

* Update other helpers
2017-10-08 08:17:54 -07:00
Fabian Affolter 0863d50210 Fix typos ()
Add an optional extended description…
2017-06-08 15:53:12 +02:00
Adam Mills 40d27cde0e Refactor sun component for correctness ()
* Refactor sun component for correctness

* Convert datetimes to dates for astral

* Fix tests for updated code

* Fix times now that calcs are fixed

* Move sun functions to helpers

* Fix flake on new file

* Additional tweaks from review

* Update requirements
2017-05-09 00:03:34 -07:00