Bump NextDNS backend library (#74611)

pull/74705/head
Maciej Bieniek 2022-07-08 09:48:46 +02:00 committed by GitHub
parent ba0b98ef32
commit fd7330ea77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 11 deletions

View File

@ -3,7 +3,7 @@
"name": "NextDNS",
"documentation": "https://www.home-assistant.io/integrations/nextdns",
"codeowners": ["@bieniu"],
"requirements": ["nextdns==1.0.0"],
"requirements": ["nextdns==1.0.1"],
"config_flow": true,
"iot_class": "cloud_polling",
"loggers": ["nextdns"]

View File

@ -1092,7 +1092,7 @@ nextcloudmonitor==1.1.0
nextcord==2.0.0a8
# homeassistant.components.nextdns
nextdns==1.0.0
nextdns==1.0.1
# homeassistant.components.niko_home_control
niko-home-control==0.2.1

View File

@ -760,7 +760,7 @@ nexia==2.0.1
nextcord==2.0.0a8
# homeassistant.components.nextdns
nextdns==1.0.0
nextdns==1.0.1
# homeassistant.components.nfandroidtv
notifications-android-tv==0.1.5

View File

@ -43,11 +43,13 @@ async def test_entry_diagnostics(hass, hass_client):
"doh_queries": 20,
"doq_queries": 10,
"dot_queries": 30,
"tcp_queries": 0,
"udp_queries": 40,
"doh_queries_ratio": 22.2,
"doq_queries_ratio": 11.1,
"dot_queries_ratio": 33.3,
"udp_queries_ratio": 44.4,
"doh_queries_ratio": 20.0,
"doq_queries_ratio": 10.0,
"dot_queries_ratio": 30.0,
"tcp_queries_ratio": 0.0,
"udp_queries_ratio": 40.0,
}
assert result["status_coordinator_data"] == {
"all_queries": 100,

View File

@ -197,7 +197,7 @@ async def test_sensor(hass):
state = hass.states.get("sensor.fake_profile_dns_over_https_queries_ratio")
assert state
assert state.state == "22.2"
assert state.state == "20.0"
assert state.attributes.get(ATTR_STATE_CLASS) is SensorStateClass.MEASUREMENT
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == PERCENTAGE
@ -217,7 +217,7 @@ async def test_sensor(hass):
state = hass.states.get("sensor.fake_profile_dns_over_quic_queries_ratio")
assert state
assert state.state == "11.1"
assert state.state == "10.0"
assert state.attributes.get(ATTR_STATE_CLASS) is SensorStateClass.MEASUREMENT
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == PERCENTAGE
@ -237,7 +237,7 @@ async def test_sensor(hass):
state = hass.states.get("sensor.fake_profile_dns_over_tls_queries_ratio")
assert state
assert state.state == "33.3"
assert state.state == "30.0"
assert state.attributes.get(ATTR_STATE_CLASS) is SensorStateClass.MEASUREMENT
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == PERCENTAGE
@ -347,7 +347,7 @@ async def test_sensor(hass):
state = hass.states.get("sensor.fake_profile_udp_queries_ratio")
assert state
assert state.state == "44.4"
assert state.state == "40.0"
assert state.attributes.get(ATTR_STATE_CLASS) is SensorStateClass.MEASUREMENT
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == PERCENTAGE