Norway air, minor fix (#21016)
This commit is contained in:
parent
b6854a82cf
commit
7b7720d0ea
1 changed files with 1 additions and 2 deletions
|
@ -51,7 +51,7 @@ async def async_setup_platform(hass, config, async_add_entities,
|
|||
|
||||
if None in (latitude, longitude):
|
||||
_LOGGER.error("Latitude or longitude not set in Home Assistant config")
|
||||
return False
|
||||
return
|
||||
|
||||
coordinates = {
|
||||
'lat': str(latitude),
|
||||
|
@ -82,7 +82,6 @@ class AirSensor(AirQualityEntity):
|
|||
import metno
|
||||
self._name = name
|
||||
self._api = metno.AirQualityData(coordinates, forecast, session)
|
||||
self._attrs = {}
|
||||
|
||||
@property
|
||||
def attribution(self) -> str:
|
||||
|
|
Loading…
Add table
Reference in a new issue