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
epenet
f4d66f67d5
Use new DeviceClass and StateClass enums in darksky ( #61342 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 11:10:26 +01:00
jjlawren
305d25b510
Set measurement entity_class for darksky temp & humidity ( #59512 )
2021-11-14 20:41:23 +01:00
Marc Mueller
4c68662612
Use assignment expressions 34 ( #58823 )
2021-10-31 19:01:16 +01:00
Marc Mueller
ea7252e377
Use assignment expressions 21 ( #57970 )
2021-10-20 17:47:46 +02:00
Marc Mueller
e5b93cdcaf
Use EntityDescription - darksky ( #57083 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-10-07 14:07:17 +02:00
Marc Mueller
96681ab3a9
Use NamedTuple for darksky condition picture ( #56942 )
2021-10-04 13:38:32 +02:00
Erik Montnemery
41f3c2766c
Move temperature conversions to entity base class (2/8) ( #54468 )
2021-08-11 18:57:12 +02:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00
Erik Montnemery
23b562386f
Migrate integrations d-e to extend SensorEntity ( #48211 )
2021-03-22 12:52:29 +01:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() ( #47756 )
2021-03-11 16:51:03 +01:00
springstan
dd4f41c1db
Use weather attribute conditions constants ( #39945 )
2020-11-20 21:04:03 +01:00
springstan
30b94892c4
Use strings instead of f-strings for constants ( #40619 )
2020-11-09 10:09:53 +01:00
springstan
06a133c3e9
Add and use length millimeters constant ( #40116 )
...
* Add and use length millimeters constant
* Fix pylint error
* Fix broken accuweather sensor test
2020-09-22 21:09:17 -05:00
springstan
e330468a13
Use pressure constants in code base ( #40262 )
2020-09-19 09:26:08 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
RogerSelwyn
7c0d5526f3
Fix DarkSky spamming the log ( #37421 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-07-03 15:49:45 -07:00
Paulus Schoutsen
1f71bdedab
Add temperature device class to Darksky sensors ( #35544 )
2020-05-12 10:37:04 -07:00
springstan
ef9d9b17bd
Drop UNIT_ prefix for constants ( #34164 )
...
* Drop UNIT_ prefix for VOLT
* Drop UNIT_ prefix for DEGREE
* Drop UNIT_ prefix for CONDUCTIVITY
* Drop UNIT_ prefix for UV_INDEX
* Run isort
2020-04-21 19:45:53 +02:00
springstan
00b6409b76
Use LENGTH_METERS constant ( #34110 )
2020-04-12 21:44:56 +02:00
springstan
b893150154
Add and use UNIT_DEGREE constant ( #33978 )
...
* Add and use UNIT_DEGREE constant
* Replace more occurrences
* Add and use TEMP_KELVIN
* Run isort
2020-04-11 16:54:11 +02:00
springstan
328cadbaa2
Use LENGTH_KILOMETERS constant ( #33976 )
...
* Use LENGTH_KILOMETERS constant
* Fix tests by importing the constant directly
2020-04-11 02:12:39 +02:00
springstan
25198242c1
Use TEMP_FAHRENHEIT constant ( #33969 )
2020-04-10 21:10:10 +02:00
springstan
78d87dc40f
Use TEMP_CELSIUS constant ( #33963 )
2020-04-10 19:17:46 +02:00
springstan
46bbe816f6
Remove None from dict.get(key, None) ( #33794 )
2020-04-07 21:06:05 +02:00
springstan
c20a965eda
Improve string formatting v3 ( #33667 )
...
* Improve string formatting v3
* Address review comment
2020-04-05 01:32:58 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields ( #33595 )
2020-04-03 12:58:19 -07:00
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Ville Skyttä
496bd3dddf
Add and use more unit constants ( #32122 )
...
* Add and use speed constants
* Add and use meter based volume and area constants
* Add and use more mass unit constants
* Add and use concentration unit constants
* Add and use watts per square meter constant
* Use more time constants
* Use more data constants
2020-02-24 17:52:14 -08:00
springstan
a85808e325
Add and use time related constants ( #32065 )
...
* Add and use time related constants
* Sort time constants and reuse them in data rate constants
* Fix greeneyemonitor import
* Fix greeneyemonitor import V2
* Fix failing here_travel_time test
* Add TIME_MONTHS and TIME_YEARS
* Use TIME_MINUTES in opentherm_gw and isy994
* Add and use TIME_MILLISECONDS
* Change inconsistent ones
* Add TIME_MICROSECONDS and TIME_WEEKS
* Use constants in apcupsd and travisci
* Fix import error in upnp sensor.py
* Fix isy994 sensor.py using TIME_YEARS
* Fix dyson tests
* Use TIME_SECONDS in more places
* Use TIME_DAYS in google wifi
2020-02-23 22:09:24 +02:00
Franck Nijhof
345cc244ed
Correct names in manifests (C-L) ( #30532 )
2020-01-07 08:19:17 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier ( #30521 )
2020-01-06 21:28:23 +01:00
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Bas Nijholt
f9e9a5e4cb
Sort imports according to PEP8 for darksky ( #29706 )
2019-12-09 11:22:04 +01:00
Marius
0cdc315038
change icon for partly-cloudy-night ( #29601 )
...
to the available mdi:weather-night-partly-cloudy
2019-12-08 10:55:39 +05:30
Malte Franken
91c6cd9646
Move imports in darksky component ( #27633 )
...
* move imports to top-level
* modify patch path
* removed unused mocks and patches
2019-10-14 15:02:00 +02:00
Josh
71a3516053
Guard against network errors for Dark Sky ( #27141 )
...
* Guard against network errors for Dark Sky
- Prevents network errors from throwing an exception during
state updates for the Dark Sky weather component.
* Implement `available` for Dark Sky component
* unknown -> unavailable
2019-10-04 19:28:55 -07:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
MatthewFlamm
43bd116852
add utc tz to forecast ( #27049 )
2019-09-30 08:56:02 +02:00
Marius
50cec91cf0
Change darksky icon for clear night ( #26452 )
...
* change icon for clear night
change mdi:weather-sunny to mdi:night for condition clear night
* changed erroneous mdi:night to mdi:weather-night
2019-09-06 11:19:31 +02:00
Franck Nijhof
6a24d893c8
Use literal string interpolation in integrations B-D (f-strings) ( #26378 )
2019-09-03 17:09:59 +02:00
mbo18
6a02fd51b8
Fix missing DarkSky mdi icon ( #26274 )
...
* Fix missing DarkSky mdi icon
Fix mdi icon for DarkSky
* fix icon
* Update weather.py
2019-08-29 13:22:52 -07:00
Paulus Schoutsen
0ccffc3e55
Lint
2019-07-31 12:46:17 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Ryan Claussen
de3d28d9d5
Add severe weather sensor to Dark Sky ( #22701 )
...
* Add severe weather alert sensor to Dark Sky
* fixup test case
* address review comments and fixup testcases
* address comments, fix assertion order
* remove extra line
* remove index increment
2019-07-16 18:03:05 +02:00
Tyler Page
eae306c3f1
Fix iterating over NoneType exception ( #23648 )
...
* Fix iterating over NoneType exception
When self._dark_sky is None, don't try to return self._dark_sky.units
* Fix wrong check
2019-05-21 08:26:11 -04: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
Eliran Turgeman
172ede217a
Add 10 additional language options to DarkSky ( #22719 )
2019-04-04 14:23:31 +02:00
Rohan Kapoor
afac09932f
Remove all config deprecations invalidated in 0.91 ( #22704 )
...
* Remove all config deprecations invalidated in 0.91
* Fix lint
2019-04-03 23:31:55 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00