mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Norway air, minor fix (#21016)
This commit is contained in:
parent
b6854a82cf
commit
7b7720d0ea
@ -51,7 +51,7 @@ async def async_setup_platform(hass, config, async_add_entities,
|
|||||||
|
|
||||||
if None in (latitude, longitude):
|
if None in (latitude, longitude):
|
||||||
_LOGGER.error("Latitude or longitude not set in Home Assistant config")
|
_LOGGER.error("Latitude or longitude not set in Home Assistant config")
|
||||||
return False
|
return
|
||||||
|
|
||||||
coordinates = {
|
coordinates = {
|
||||||
'lat': str(latitude),
|
'lat': str(latitude),
|
||||||
@ -82,7 +82,6 @@ class AirSensor(AirQualityEntity):
|
|||||||
import metno
|
import metno
|
||||||
self._name = name
|
self._name = name
|
||||||
self._api = metno.AirQualityData(coordinates, forecast, session)
|
self._api = metno.AirQualityData(coordinates, forecast, session)
|
||||||
self._attrs = {}
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def attribution(self) -> str:
|
def attribution(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user