mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
changed to use requestes in stead of urllib for yr sensor
This commit is contained in:
@@ -135,7 +135,7 @@ class YrSensor(Entity):
|
||||
def state_attributes(self):
|
||||
""" Returns state attributes. """
|
||||
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"
|
||||
if self.type == 'symbol':
|
||||
symbol_nr = self._state
|
||||
|
Reference in New Issue
Block a user