mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Add location to Norway airquality (#21347)
This commit is contained in:
parent
8f70c16863
commit
b7b4a6dcc8
@ -17,7 +17,7 @@ from homeassistant.const import (CONF_LATITUDE, CONF_LONGITUDE,
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
|
|
||||||
REQUIREMENTS = ['pyMetno==0.4.5']
|
REQUIREMENTS = ['pyMetno==0.4.6']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -91,7 +91,9 @@ class AirSensor(AirQualityEntity):
|
|||||||
@property
|
@property
|
||||||
def device_state_attributes(self) -> dict:
|
def device_state_attributes(self) -> dict:
|
||||||
"""Return other details about the sensor state."""
|
"""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
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
|
@ -13,7 +13,7 @@ from homeassistant.helpers.event import (
|
|||||||
async_call_later, async_track_utc_time_change)
|
async_call_later, async_track_utc_time_change)
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
REQUIREMENTS = ['pyMetno==0.4.5']
|
REQUIREMENTS = ['pyMetno==0.4.6']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -897,7 +897,7 @@ pyHS100==0.3.4
|
|||||||
|
|
||||||
# homeassistant.components.air_quality.norway_air
|
# homeassistant.components.air_quality.norway_air
|
||||||
# homeassistant.components.weather.met
|
# homeassistant.components.weather.met
|
||||||
pyMetno==0.4.5
|
pyMetno==0.4.6
|
||||||
|
|
||||||
# homeassistant.components.rfxtrx
|
# homeassistant.components.rfxtrx
|
||||||
pyRFXtrx==0.23
|
pyRFXtrx==0.23
|
||||||
|
Loading…
x
Reference in New Issue
Block a user