Ville Skyttä
b51c0f6ddc
Remove unnnecessary pylint configs from components [s-z]* ( #98925 )
2023-08-24 01:25:32 +02:00
Erik Montnemery
f643d2de46
Map SMHI weather condition codes once ( #98517 )
2023-08-16 22:07:12 +02:00
Marc Mueller
063ce9159d
Use asyncio.timeout [o-s] ( #98451 )
2023-08-15 17:21:49 +02:00
Erik Montnemery
496a975c58
Set _attr_condition in WeatherEntity ( #98459 )
2023-08-15 17:17:35 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
G Johansson
15eed166ec
Modernize SMHI weather ( #97275 )
...
* SMHI forecast service
* Mod weather
* reset weather
* Fix tests
* coverage
* add test
2023-08-07 17:24:43 +02:00
G Johansson
9656173d5c
Fix Smhi name ( #95097 )
...
smhi no name
2023-06-23 11:37:52 +02:00
G Johansson
071679f91f
Use new attributes in Smhi ( #95096 )
2023-06-23 11:32:20 +02:00
epenet
c092f2be04
Use new unit enums in weather integrations ( #82938 )
2022-11-29 18:13:05 +01:00
epenet
dd7a06b9dc
Use unit_conversion in components ( #78991 )
2022-09-23 17:33:32 +02:00
G Johansson
06c8eb0304
Migrate SMHI to new entity naming style ( #75213 )
2022-07-22 11:57:36 +02:00
G Johansson
97dcfe4445
Smhi reverse change of unique id change ( #74176 )
2022-06-29 17:13:07 +02:00
G Johansson
c4ff317ec6
Smhi minor fixes ( #72606 )
...
* Initial commit
* Tests
* From review comments
2022-06-28 14:29:00 +02:00
G Johansson
2f0fe0df82
Fix wind speed SMHI ( #72999 )
2022-06-28 01:50:06 +02:00
G Johansson
bbb29ab455
Code quality improvements smhi ( #64312 )
2022-01-17 20:27:23 +01:00
G Johansson
99f36c9a8b
Implement DeviceInfo in smhi ( #64126 )
...
* Implement DeviceInfo in smhi
* Change model
2022-01-14 19:39:41 +01:00
J. Nick Koston
10d6247fee
Bump to aiohttp 3.8.0 ( #58974 )
2021-11-04 10:07:50 -05:00
Franck Nijhof
3b00e87ebc
Define WeatherEntity entity attributes as class variables ( #51899 )
2021-06-17 10:16:16 +02:00
Martin Hjelmare
5da64d01e2
Fix smhi typing ( #50690 )
2021-05-15 21:38:12 +02:00
Martin Hjelmare
d84962bada
Fix smhi retry ( #50673 )
2021-05-15 18:24:34 +02:00
Christer Vestermark
fca56993c6
Add smhi wind gust speed and thunder probability ( #50328 )
...
* Added some extra attributes
Added the extra attributes
wind_gust_speed and
thunder_probability
that were already implemented in the underlaying library (joysoftware
/
pypi_smhi).
Also for the existing extra attribute cloudiness, it is added if "is not None" instead of just "if self.cloudiness" which would make it False (and therefore not available) if cloudiness = 0.
* Trying to solve the style issues
Removed white spaces and changed order of list as suggested by the tests.
* New try to solve the style issues
Removed some more white spaces...
* Changed dictionary handling as suggested
Changed dictionary handling as suggested by MartinHjelmare.
* Updated test
Updated test_weather.py to include the new attributes wind_gust_speed and thunder_probability.
* Added missing imports
Added the missing imports
ATTR_SMHI_THUNDER_PROBABILITY,
ATTR_SMHI_WIND_GUST_SPEED,
* Renaming self.thunder to self.thunder_probability and correcting test valuesfor
Renamed the new internal attribute
thunder to thunder_probability, same as the exposed attribute for improved consistency.
Corrected test values according to smhi.json.
* Forgot to change to self.thunder_probability in one place.
sorry.
2021-05-10 16:44:08 +02:00
Marc Mueller
a3cd1854f6
Update typing 12 ( #48073 )
2021-03-18 14:31:38 +01:00
Erik Montnemery
14ff6d4d1f
Update integrations p-s to override extra_state_attributes() ( #47759 )
2021-03-11 21:23:20 +01:00
springstan
dd4f41c1db
Use weather attribute conditions constants ( #39945 )
2020-11-20 21:04:03 +01:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Franck Nijhof
7653dc947a
Enable pylint unnecessary-pass ( #33650 )
...
* Enable pylint unnecessary-pass
* Process review suggestions
* Fix smhi tests
2020-04-05 10:33:07 +02:00
springstan
1bb499aec2
Move imports to top for smhi ( #29545 )
2019-12-06 09:11:07 +01:00
Franck Nijhof
445c741b30
Use literal string interpolation in integrations R-S (f-strings) ( #26392 )
2019-09-03 21:14:39 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Tomas Hellström
33c9afd6e0
Added a digit for precipitation ( #21439 )
2019-02-27 11:07:35 +05:30
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
Tomas Hellström
208ea6eae4
SMHI component: Bugfix - calc precipitation ( #20745 )
...
* Bugfix - calc precipitation
* Feedback: better way to skip first forecast
* Even less messy way
* lint error
2019-02-05 07:43:04 -05:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00