changed to use requestes in stead of urllib for yr sensor
This commit is contained in:
parent
9a1883bb49
commit
cf4f4ce8c7
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class YrSensor(Entity):
|
||||||
def state_attributes(self):
|
def state_attributes(self):
|
||||||
""" Returns state attributes. """
|
""" Returns state attributes. """
|
||||||
data = {}
|
data = {}
|
||||||
data[''] = self._info + "Weather forecast from yr.no, delivered by the"\
|
data[''] = "Weather forecast from yr.no, delivered by the"\
|
||||||
" Norwegian Meteorological Institute and the NRK"
|
" Norwegian Meteorological Institute and the NRK"
|
||||||
if self.type == 'symbol':
|
if self.type == 'symbol':
|
||||||
symbol_nr = self._state
|
symbol_nr = self._state
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue