Upgrade netdata to 1.0.1 (#60971)
This commit is contained in:
parent
156435d1c2
commit
1485020a2e
3 changed files with 3 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
"domain": "netdata",
|
||||
"name": "Netdata",
|
||||
"documentation": "https://www.home-assistant.io/integrations/netdata",
|
||||
"requirements": ["netdata==0.2.0"],
|
||||
"requirements": ["netdata==1.0.1"],
|
||||
"codeowners": ["@fabaff"],
|
||||
"iot_class": "local_polling"
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ from homeassistant.const import (
|
|||
PERCENTAGE,
|
||||
)
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
|
@ -61,8 +60,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||
port = config.get(CONF_PORT)
|
||||
resources = config.get(CONF_RESOURCES)
|
||||
|
||||
session = async_get_clientsession(hass)
|
||||
netdata = NetdataData(Netdata(host, hass.loop, session, port=port))
|
||||
netdata = NetdataData(Netdata(host, port=port))
|
||||
await netdata.async_update()
|
||||
|
||||
if netdata.api.metrics is None:
|
||||
|
|
|
@ -1050,7 +1050,7 @@ ndms2_client==0.1.1
|
|||
nessclient==0.9.15
|
||||
|
||||
# homeassistant.components.netdata
|
||||
netdata==0.2.0
|
||||
netdata==1.0.1
|
||||
|
||||
# homeassistant.components.discovery
|
||||
netdisco==3.0.0
|
||||
|
|
Loading…
Add table
Reference in a new issue