Add location to Norway airquality (#21347)

This commit is contained in:
Daniel Høyer Iversen 2019-02-23 10:35:18 +01:00 committed by Fabian Affolter
parent 8f70c16863
commit b7b4a6dcc8
3 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,7 @@ from homeassistant.const import (CONF_LATITUDE, CONF_LONGITUDE,
from homeassistant.helpers.aiohttp_client import async_get_clientsession
REQUIREMENTS = ['pyMetno==0.4.5']
REQUIREMENTS = ['pyMetno==0.4.6']
_LOGGER = logging.getLogger(__name__)
@ -91,7 +91,9 @@ class AirSensor(AirQualityEntity):
@property
def device_state_attributes(self) -> dict:
"""Return other details about the sensor state."""
return {'level': self._api.data.get('level')}
return {'level': self._api.data.get('level'),
'location': self._api.data.get('location'),
}
@property
def name(self) -> str:

View File

@ -13,7 +13,7 @@ from homeassistant.helpers.event import (
async_call_later, async_track_utc_time_change)
import homeassistant.util.dt as dt_util
REQUIREMENTS = ['pyMetno==0.4.5']
REQUIREMENTS = ['pyMetno==0.4.6']
_LOGGER = logging.getLogger(__name__)

View File

@ -897,7 +897,7 @@ pyHS100==0.3.4
# homeassistant.components.air_quality.norway_air
# homeassistant.components.weather.met
pyMetno==0.4.5
pyMetno==0.4.6
# homeassistant.components.rfxtrx
pyRFXtrx==0.23