Update for file header, docstrings, and PEP8/PEP257
This commit is contained in:
parent
34b91cf6ce
commit
00afaac54c
74 changed files with 212 additions and 211 deletions
|
@ -1,6 +1,6 @@
|
|||
"""
|
||||
tests.components.sensor.test_yr
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Tests Yr sensor.
|
||||
"""
|
||||
|
@ -73,7 +73,7 @@ class TestSensorYr:
|
|||
assert '1025.1' == state.state
|
||||
|
||||
state = self.hass.states.get('sensor.yr_wind_direction')
|
||||
assert '°'== state.attributes.get('unit_of_measurement')
|
||||
assert '°' == state.attributes.get('unit_of_measurement')
|
||||
assert '81.8' == state.state
|
||||
|
||||
state = self.hass.states.get('sensor.yr_humidity')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue