mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27: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.core import callback
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||||
from homeassistant.helpers.event import async_track_time_interval
|
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))
|
hass.async_create_task(hass.config_entries.async_remove(config_entry.entry_id))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
session = async_get_clientsession(hass)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
luftdaten = LuftDatenData(
|
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(
|
config_entry.data.get(CONF_SENSORS, {}).get(
|
||||||
CONF_MONITORED_CONDITIONS, SENSOR_KEYS
|
CONF_MONITORED_CONDITIONS, SENSOR_KEYS
|
||||||
),
|
),
|
||||||
|
@ -13,7 +13,6 @@ from homeassistant.const import (
|
|||||||
CONF_SHOW_ON_MAP,
|
CONF_SHOW_ON_MAP,
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers import aiohttp_client
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
from .const import CONF_SENSOR_ID, DEFAULT_SCAN_INTERVAL, DOMAIN
|
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):
|
if sensor_id in configured_sensors(self.hass):
|
||||||
return self._show_form({CONF_SENSOR_ID: "already_configured"})
|
return self._show_form({CONF_SENSOR_ID: "already_configured"})
|
||||||
|
|
||||||
session = aiohttp_client.async_get_clientsession(self.hass)
|
luftdaten = Luftdaten(user_input[CONF_SENSOR_ID])
|
||||||
luftdaten = Luftdaten(user_input[CONF_SENSOR_ID], self.hass.loop, session)
|
|
||||||
try:
|
try:
|
||||||
await luftdaten.get_data()
|
await luftdaten.get_data()
|
||||||
valid = await luftdaten.validate_sensor()
|
valid = await luftdaten.validate_sensor()
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Luftdaten",
|
"name": "Luftdaten",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/luftdaten",
|
"documentation": "https://www.home-assistant.io/integrations/luftdaten",
|
||||||
"requirements": ["luftdaten==0.6.5"],
|
"requirements": ["luftdaten==0.7.1"],
|
||||||
"codeowners": ["@fabaff"],
|
"codeowners": ["@fabaff"],
|
||||||
"quality_scale": "gold",
|
"quality_scale": "gold",
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
|
@ -966,7 +966,7 @@ logi_circle==0.2.2
|
|||||||
london-tube-status==0.2
|
london-tube-status==0.2
|
||||||
|
|
||||||
# homeassistant.components.luftdaten
|
# homeassistant.components.luftdaten
|
||||||
luftdaten==0.6.5
|
luftdaten==0.7.1
|
||||||
|
|
||||||
# homeassistant.components.lupusec
|
# homeassistant.components.lupusec
|
||||||
lupupy==0.0.21
|
lupupy==0.0.21
|
||||||
|
@ -591,7 +591,7 @@ libsoundtouch==0.8
|
|||||||
logi_circle==0.2.2
|
logi_circle==0.2.2
|
||||||
|
|
||||||
# homeassistant.components.luftdaten
|
# homeassistant.components.luftdaten
|
||||||
luftdaten==0.6.5
|
luftdaten==0.7.1
|
||||||
|
|
||||||
# homeassistant.components.nmap_tracker
|
# homeassistant.components.nmap_tracker
|
||||||
mac-vendor-lookup==0.1.11
|
mac-vendor-lookup==0.1.11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user