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:
parent
fd6c2598a7
commit
f807a3a890
3 changed files with 12 additions and 5 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue