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
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue