mirror of
https://github.com/home-assistant/core.git
synced 2026-04-18 07:56:03 +01:00
Bump fing_agent_api to 1.1.0 (#166855)
This commit is contained in:
committed by
Franck Nijhof
parent
ff08335890
commit
425d380d03
@@ -10,6 +10,7 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_IP_ADDRESS, CONF_PORT
|
from homeassistant.const import CONF_API_KEY, CONF_IP_ADDRESS, CONF_PORT
|
||||||
|
from homeassistant.helpers.httpx_client import get_async_client
|
||||||
|
|
||||||
from .const import DOMAIN, UPNP_AVAILABLE
|
from .const import DOMAIN, UPNP_AVAILABLE
|
||||||
|
|
||||||
@@ -40,6 +41,7 @@ class FingConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
ip=user_input[CONF_IP_ADDRESS],
|
ip=user_input[CONF_IP_ADDRESS],
|
||||||
port=int(user_input[CONF_PORT]),
|
port=int(user_input[CONF_PORT]),
|
||||||
key=user_input[CONF_API_KEY],
|
key=user_input[CONF_API_KEY],
|
||||||
|
client=get_async_client(self.hass),
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import httpx
|
|||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_IP_ADDRESS, CONF_PORT
|
from homeassistant.const import CONF_API_KEY, CONF_IP_ADDRESS, CONF_PORT
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
from homeassistant.helpers.httpx_client import get_async_client
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||||
|
|
||||||
from .const import DOMAIN, UPNP_AVAILABLE
|
from .const import DOMAIN, UPNP_AVAILABLE
|
||||||
@@ -38,6 +39,7 @@ class FingDataUpdateCoordinator(DataUpdateCoordinator[FingDataObject]):
|
|||||||
ip=config_entry.data[CONF_IP_ADDRESS],
|
ip=config_entry.data[CONF_IP_ADDRESS],
|
||||||
port=int(config_entry.data[CONF_PORT]),
|
port=int(config_entry.data[CONF_PORT]),
|
||||||
key=config_entry.data[CONF_API_KEY],
|
key=config_entry.data[CONF_API_KEY],
|
||||||
|
client=get_async_client(hass),
|
||||||
)
|
)
|
||||||
self._upnp_available = config_entry.data[UPNP_AVAILABLE]
|
self._upnp_available = config_entry.data[UPNP_AVAILABLE]
|
||||||
update_interval = timedelta(seconds=30)
|
update_interval = timedelta(seconds=30)
|
||||||
|
|||||||
@@ -7,5 +7,5 @@
|
|||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"quality_scale": "bronze",
|
"quality_scale": "bronze",
|
||||||
"requirements": ["fing_agent_api==1.0.3"]
|
"requirements": ["fing_agent_api==1.1.0"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,5 +68,5 @@ rules:
|
|||||||
|
|
||||||
# Platinum
|
# Platinum
|
||||||
async-dependency: todo
|
async-dependency: todo
|
||||||
inject-websession: todo
|
inject-websession: done
|
||||||
strict-typing: todo
|
strict-typing: todo
|
||||||
|
|||||||
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -963,7 +963,7 @@ feedparser==6.0.12
|
|||||||
file-read-backwards==2.0.0
|
file-read-backwards==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.fing
|
# homeassistant.components.fing
|
||||||
fing_agent_api==1.0.3
|
fing_agent_api==1.1.0
|
||||||
|
|
||||||
# homeassistant.components.fints
|
# homeassistant.components.fints
|
||||||
fints==3.1.0
|
fints==3.1.0
|
||||||
|
|||||||
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -854,7 +854,7 @@ feedparser==6.0.12
|
|||||||
file-read-backwards==2.0.0
|
file-read-backwards==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.fing
|
# homeassistant.components.fing
|
||||||
fing_agent_api==1.0.3
|
fing_agent_api==1.1.0
|
||||||
|
|
||||||
# homeassistant.components.fints
|
# homeassistant.components.fints
|
||||||
fints==3.1.0
|
fints==3.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user