Joost Lekkerkerker
b9281327c4
Use FlowResultType enum in config flow tests A-M ( #114681 )
2024-04-03 09:21:17 +02:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
Erik Montnemery
a0ead2b861
Remove hourly weather entity from met.no ( #97023 )
2024-02-16 16:46:37 +01:00
Jan-Philipp Benecke
9326ea09a5
Update m* tests to use entity & device registry fixtures ( #103980 )
2023-11-15 10:33:11 +01:00
Jan-Philipp Benecke
5901f6f7e7
Move met coordinator to own module ( #103546 )
2023-11-08 16:55:09 +01:00
G Johansson
85d49a2920
Fix Met Device Info ( #103082 )
2023-10-31 08:31:53 +01:00
Erik Montnemery
c17f08a3f5
Create a single entity for new met.no config entries ( #98098 )
...
* Create a single entity for new met.no config entries
* Fix lying docstring
* Fix test
2023-08-17 19:41:11 +02:00
Sebastian Lövdahl
fde498586e
Expose dew point in Met.no ( #98543 )
2023-08-17 07:45:23 +02:00
Chris Xiao
93c681ae58
Add options flow for met ( #88525 )
...
* implement options flow for met
* add tests for met options flow
* fix met options flow tests
* fix met options flow when tracking home
2023-02-22 10:18:58 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
6c430e03bc
Add type hints to integration tests (part 14) ( #88005 )
2023-02-15 10:31:43 +01:00
epenet
f75ac17554
Add type hints to integration tests (j-m) ( #87704 )
2023-02-08 19:06:59 +01:00
Franck Nijhof
d6ceebbb68
Migrate Met.no to new entity naming style ( #74908 )
2022-07-10 13:13:22 -07:00
Franck Nijhof
af6953157f
Remove deprecated YAML configuration from Met.no ( #69027 )
2022-03-31 13:08:51 -07:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler ( #60436 )
2021-12-15 23:25:40 +02:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* Change config entry state to an enum
* Allow but deprecate EntryState str equality comparison
* Test fixes
* Rename to ConfigEntryState
* Remove str comparability backcompat
* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Ville Skyttä
a396619251
Use disabled_by constants ( #49584 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
Franck Nijhof
6ec8e17e7b
Do not activate Met.no without setting a Home coordinates ( #48741 )
2021-04-07 09:39:39 +02:00
Daniel Hjelseth Høyer
b558f20ad2
Met.no - only update data if coordinates changed ( #48756 )
2021-04-07 09:27:58 +02:00
Erik Montnemery
84226da404
Update tests i-o to use async_get() instead of async_get_registry() ( #47653 )
2021-03-09 14:32:08 +01:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Daniel Hjelseth Høyer
4a1173c3de
Update met config string ( #41048 )
...
* update config string met
* typo
* config strings
2020-10-03 15:18:05 +02:00
Franck Nijhof
b70df4ab18
Disable Met.no hourly weather by default ( #39867 )
...
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
2020-09-10 07:58:40 +02:00
Vaclav
8555e17eb9
Add hourly forecast to met.no ( #38700 )
...
* Add hourly forecast
* fix tests to assert for 2 entities created
* fix test to assert for 4 calls
* correct test tracking home number of calls
* fox tests
* fix test
* Apply suggestions from code review
* black
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-10 20:22:39 -05:00
Vaclav
b258e757c2
Add DataUpdateCoordinator to met integration ( #38405 )
...
* Add DataUpdateCoordinator to met integration
* isort
* redundant fetch_data
* Update homeassistant/components/met/weather.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/weather.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/weather.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/weather.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update homeassistant/components/met/weather.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* fix black, isort, flake8, hassfest, mypy
* remove unused async_setup method
* replace fetch_data by coordinator request_refresh
* remove redundant async_update
* track_home
* Apply suggestions from code review
* Apply suggestions from code review
* Update homeassistant/components/met/__init__.py
* Apply suggestions from code review
* Update homeassistant/components/met/__init__.py
* Apply suggestions from code review
* Update homeassistant/components/met/__init__.py
* Apply suggestions from code review
* Update test_config_flow.py
* Apply suggestions from code review
* Apply suggestions from code review
* Update __init__.py
* Create test_init.py
* Update homeassistant/components/met/__init__.py
* Update __init__.py
* Update __init__.py
* Update homeassistant/components/met/__init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-09 13:18:02 -05:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
d4615fd432
Freeze config entry data ( #32615 )
...
* Freeze config entry data
* Fix mutating entry.data
* Fix config entry options tests
2020-03-09 14:07:50 -07:00
Martin Hjelmare
91f738127d
Make met config flow tests robust ( #30689 )
...
* Make met config flow tests more robust
* Fix test with default form values
* Remove not needed test
* Clean create entry test
* Clean double test
* Clean last tests
* Fix docstring
2020-01-11 20:00:02 -08:00
Bas Nijholt
642655b6d7
Sort imports according to PEP8 for met ( #29699 )
2019-12-09 11:43:00 +01:00
Daniel Høyer Iversen
b9923ca109
Met, check for existing location ( #26400 )
2019-09-03 23:13:17 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f2962a0d16
Set up Met during onboarding ( #24622 )
...
* Set up Met during onboarding
* Lint
* Add pyMetNo to test reqs
2019-06-19 14:41:27 -07:00
Aaron Bach
a89c8eeabe
Add config entry for Met.no ( #24608 )
...
* Add config entry for Met.no
* Fixed tests
2019-06-18 17:44:41 -06:00