Skip to content

Commit

Permalink
Upgrade netdata to 1.0.1 (home-assistant#60971)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Dec 4, 2021
1 parent 156435d commit 1485020
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/netdata/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 1 addition & 3 deletions homeassistant/components/netdata/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
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

Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1485020

Please sign in to comment.