Commit graph

40 commits

Author SHA1 Message Date
Glenn Waters
a50aeb0a66
Environment Canada weather format fix (#123960)
* Add missing isoformat.

* Move fixture loading to common conftest.py

* Add deepcopy.
2024-08-15 16:14:01 +02:00
Glenn Waters
6645932fb7
Fix for Environment Canada date being wrong after midnight (#121850)
* Use async_connect in newly bumped 0.5.8 UPB library.

* Fix tests.

* Fix date being wrong after midnight for Environment Canada

* Fix typing.

* Add test.

* Formatting.

* Remove tests until can be added properly.

* Add weather tests back.

* Fix tests

* Change of tactic for determining previous day's data.

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-07-16 11:57:37 +02:00
Sid
3799d20d43
Enable Ruff B905 (#114197) 2024-04-14 00:14:26 -05:00
G Johansson
65230908c6
Remove deprecated forecast attribute from WeatherEntity (#110761)
* Remove deprecated forecast attribute from WeatherEntity

* Fix some

* Ruff

* ipma

* buienradar

* some more

* Some more

* More and more

* strings

* attr_forecast

* Fix nws

* Fix

* remove from coverage

* Remove recorder test

* Review comments
2024-03-27 16:51:29 +01:00
Joost Lekkerkerker
643e6096da
Improve lists in integrations [E-F] (#113075) 2024-03-12 18:42:43 +01:00
Marc Mueller
0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
G Johansson
248f2ac2fb
Remove hourly weather entity from Environment Canada (#112447)
* Remove hourly weather entity from Environment Canada

* Remove from strings
2024-03-06 20:53:44 +01:00
Erik Montnemery
c47983621c
Teach CoordinatorWeatherEntity about multiple coordinators (#98830) 2023-08-24 11:28:20 +02:00
Erik Montnemery
3e7ec88703
Add CoordinatorWeatherEntity (#98777) 2023-08-21 23:10:16 +02:00
Erik Montnemery
f85c2e5a92
Modernize environment_canada weather (#98502) 2023-08-16 22:10:48 +02:00
Joost Lekkerkerker
2872b6cf61
Add entity translations to Environment Canada (#95295) 2023-06-26 22:23:43 +02:00
Ville Skyttä
70c49824d7
Import util.dt as dt_util in components/[e-f]* (#93758) 2023-05-30 00:00:11 +03:00
epenet
c092f2be04
Use new unit enums in weather integrations (#82938) 2022-11-29 18:13:05 +01:00
Glenn Waters
96ecbe4388
Migrate Environment Canada to new entity naming style (#75024)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-07-12 20:45:38 +02:00
Erik Montnemery
f66fc65d0b
Migrate environment_canada to native_* (#74048) 2022-06-28 11:01:14 +02:00
duncanvanzyl
2ea2e2e65b
Hourly forecast time is string (#70390) 2022-04-26 18:45:33 +02:00
Glenn Waters
912923f55d
Environment Canada: Fix for when temperature is zero (#69101) 2022-04-02 09:44:40 +02:00
Glenn Waters
1d9318233d
Remove dead code in Environment Canada integration (#63946) 2022-01-12 13:11:04 +01:00
Glenn Waters
128433758e
Add SensorEntityClass support for Environment Canada integration (#58615) 2022-01-07 18:28:13 +01:00
epenet
7df339f436
Add weather setup type hints (#63301)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:27:33 +01:00
Robert Hillis
4e2195baa1
Remove deprecated yaml config from environment canada (#61839) 2021-12-19 13:40:39 +01:00
Glenn Waters
de4a4c3ba9
Add async lib and DataUpdateCoordinator for environment_canada (#57746) 2021-10-26 14:23:43 -07:00
Marc Mueller
2a8eaf0e0f
Use assignment expressions 06 (#57786) 2021-10-17 20:05:11 +02:00
Glenn Waters
d0b37229dd
Switch to config_flow for Environment Canada (#57127)
* Add config_flow to Environment Canada

* Add unique_id

* Remove erroneous directory.

* Tests working!!

* Add back setup.

* First cut of import.

* Temp

* Tweak names.

* Import config.yaml.

* Clean up imports.

* Import working! Some refactor to clean it up.

* Add import test.

* Small optimization.

* Fix comments from code review.

* Remove CONF_NAME and config_flow for it.

* Fixup strings to match new config_flow.

* Fixes for comments from last review.

* Update tests to match new import code.

* Clean up use of CONF_TITLE; fix lint error on push.

* Phew. More cleanup on import. Really streamlined now!

* Update tests.

* Fix lint error.

* Fix lint error, try 2.

* Revert unique_id to use location as part of ID.

* Fix code review comments.

* Fix review comments.
2021-10-11 17:33:29 +02:00
Daniel Hjelseth Høyer
fbad453c89
Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Michael Davie
594bcbcf7a
Fix timezones in Environment Canada hourly forecasts (#51917) 2021-06-28 12:57:07 +02:00
Michael Davie
ae86e96d34
Fix misaligned high/low temperatures in weather card (#49826) 2021-06-08 03:23:44 +02:00
Ville Skyttä
dc880118a4
Lint suppression cleanups (#47248)
* 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
michaeldavie
aea8636c7e
Fix environment_canada high/low temperature display in evenings. (#45855) 2021-02-02 08:23:26 +01:00
springstan
dd4f41c1db
Use weather attribute conditions constants (#39945) 2020-11-20 21:04:03 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
Martin Hjelmare
23510e6839
Disable env_canada pylint import error (#38868)
* Disable env_canada pylint import error

* Disable pylint in camera and sensor too
2020-08-14 11:15:45 +02:00
michaeldavie
619707e0e3
Make nested get() statements safe (#37965) 2020-07-19 11:52:46 +02:00
marawan31
dba326f16b
Add precipitation probability to weather forcast (#36019)
* Add precipitation probability attribute

* bump env_canada version to 0.0.38 in manifest

* bump env_canada version to 0.0.38 in requirements

* Add support for percipiation probability

* formated project with black

* make sure prob is an int

* fix build break

* update usage to correct naming

* revert bad change and apply fix build break

* add tests
2020-06-17 07:39:33 +02:00
springstan
1ee7c483a7
Update file headers and outdated documentation links (#32022)
* Update documentation links

* Update file headers v2
2020-02-20 15:29:46 -08:00
springstan
58ba6052e2 Move imports to top for environment_canada (#29458) 2019-12-04 21:18:52 -08:00
michaeldavie
d9ae63e239 Remove throttle from update (#26216) 2019-08-27 16:00:54 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
michaeldavie
a147a189ca Update Environment Canada platforms (#24884)
* Add support for French

* Move labels to env_canada

* Bump env_canada to 0.0.17, change update frequency to 1 minute

* Update requirements_all.txt

* Set entity IDs separate from labels

* Flake error

* Remove monitored conditions

* Use next hourly forecast for missing conditions

* Switch sensors to unique_id

* Flake error

* Requested changes

* Simplify setting location parameters
2019-07-13 18:14:29 +02:00
michaeldavie
fcfbdd2d89 Add Environment Canada weather, sensor, and camera platforms (#21110)
* Added Environment Canada weather platform

* Added Environment Canada weather platform

* Migrate to new folder structure

* Migrate to new folder structure

* Fix updates

* Fix updates again

* Bump env_canada to 0.0.4

* Bump env_canada to 0.0.4

* Bump env_canada to 0.0.4 in requirements_all.txt

* Change daily forecast timestamp and high/low test

* Change daily forecast timestamp and high/low test

* Bump env_canada to 0.0.5

* Break alerts into multiple sensors, bump env_canada to 0.0.6

* Bump env_canada to 0.0.7

* Remove blank line

* Remove 'ec' sensor prefix, bump env_canada to 0.0.8

* Corrections

* Change to manifests.json

* Add docstring to __init.py__

* Update CODEOWNERS

* pylint correction

* pylint correction

* Add alert details, bump env_canada to 0.0.9

* Update requirements_all.txt

* Update .coveragerc

* Bump env_canada to 0.0.10

* Update requirements_all.txt
2019-06-06 11:47:27 -07:00