mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Upgrade luftdaten to 0.7.1 (#60970)
This commit is contained in:
parent
1485020a2e
commit
b2ee62ba8d
@ -24,7 +24,6 @@ from homeassistant.const import (
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
from homeassistant.helpers.event import async_track_time_interval
|
||||
@ -175,11 +174,9 @@ async def async_setup_entry(hass, config_entry):
|
||||
hass.async_create_task(hass.config_entries.async_remove(config_entry.entry_id))
|
||||
return False
|
||||
|
||||
session = async_get_clientsession(hass)
|
||||
|
||||
try:
|
||||
luftdaten = LuftDatenData(
|
||||
Luftdaten(config_entry.data[CONF_SENSOR_ID], hass.loop, session),
|
||||
Luftdaten(config_entry.data[CONF_SENSOR_ID]),
|
||||
config_entry.data.get(CONF_SENSORS, {}).get(
|
||||
CONF_MONITORED_CONDITIONS, SENSOR_KEYS
|
||||
),
|
||||
|
@ -13,7 +13,6 @@ from homeassistant.const import (
|
||||
CONF_SHOW_ON_MAP,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import CONF_SENSOR_ID, DEFAULT_SCAN_INTERVAL, DOMAIN
|
||||
@ -69,8 +68,7 @@ class LuftDatenFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
if sensor_id in configured_sensors(self.hass):
|
||||
return self._show_form({CONF_SENSOR_ID: "already_configured"})
|
||||
|
||||
session = aiohttp_client.async_get_clientsession(self.hass)
|
||||
luftdaten = Luftdaten(user_input[CONF_SENSOR_ID], self.hass.loop, session)
|
||||
luftdaten = Luftdaten(user_input[CONF_SENSOR_ID])
|
||||
try:
|
||||
await luftdaten.get_data()
|
||||
valid = await luftdaten.validate_sensor()
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "Luftdaten",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/luftdaten",
|
||||
"requirements": ["luftdaten==0.6.5"],
|
||||
"requirements": ["luftdaten==0.7.1"],
|
||||
"codeowners": ["@fabaff"],
|
||||
"quality_scale": "gold",
|
||||
"iot_class": "cloud_polling"
|
||||
|
@ -966,7 +966,7 @@ logi_circle==0.2.2
|
||||
london-tube-status==0.2
|
||||
|
||||
# homeassistant.components.luftdaten
|
||||
luftdaten==0.6.5
|
||||
luftdaten==0.7.1
|
||||
|
||||
# homeassistant.components.lupusec
|
||||
lupupy==0.0.21
|
||||
|
@ -591,7 +591,7 @@ libsoundtouch==0.8
|
||||
logi_circle==0.2.2
|
||||
|
||||
# homeassistant.components.luftdaten
|
||||
luftdaten==0.6.5
|
||||
luftdaten==0.7.1
|
||||
|
||||
# homeassistant.components.nmap_tracker
|
||||
mac-vendor-lookup==0.1.11
|
||||
|
Loading…
x
Reference in New Issue
Block a user