mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Darksky enhancements (#9851)
* Correct capitalization inconsistency in DarkSky
All two-word sensors ("Precip Intensity," "Nearest Storm Bearing," etc) in Darksky uses title case for the friendly name of the sensor, with the exception of "Dew point."
* Implement UV Index in Darksky
* Fixed whitespace for Tox compliance
* Add unit for UV Index.
Per recommendation of reviewer, added 'UV Index' as a CONST in const.py, then used that const in both DarkSky and ISY994. It looks like BloomSky might also support UV Index and it should probably be standardized.
This commit is contained in:
@@ -279,6 +279,9 @@ MASS_KILOGRAMS = 'kg' # type: str
|
||||
MASS_OUNCES = 'oz' # type: str
|
||||
MASS_POUNDS = 'lb' # type: str
|
||||
|
||||
# UV Index units
|
||||
UNIT_UV_INDEX = 'UV index' # type: str
|
||||
|
||||
# Contains the information that is discovered
|
||||
ATTR_DISCOVERED = 'discovered'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user