mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 00:03:16 +01:00
Bump pythonkuma to 0.5.0 (#163430)
This commit is contained in:
@@ -8,5 +8,5 @@
|
|||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["pythonkuma"],
|
"loggers": ["pythonkuma"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["pythonkuma==0.4.1"]
|
"requirements": ["pythonkuma==0.5.0"]
|
||||||
}
|
}
|
||||||
|
|||||||
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -2657,7 +2657,7 @@ python-xbox==0.1.3
|
|||||||
pythonegardia==1.0.52
|
pythonegardia==1.0.52
|
||||||
|
|
||||||
# homeassistant.components.uptime_kuma
|
# homeassistant.components.uptime_kuma
|
||||||
pythonkuma==0.4.1
|
pythonkuma==0.5.0
|
||||||
|
|
||||||
# homeassistant.components.tile
|
# homeassistant.components.tile
|
||||||
pytile==2024.12.0
|
pytile==2024.12.0
|
||||||
|
|||||||
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -2244,7 +2244,7 @@ python-telegram-bot[socks]==22.1
|
|||||||
python-xbox==0.1.3
|
python-xbox==0.1.3
|
||||||
|
|
||||||
# homeassistant.components.uptime_kuma
|
# homeassistant.components.uptime_kuma
|
||||||
pythonkuma==0.4.1
|
pythonkuma==0.5.0
|
||||||
|
|
||||||
# homeassistant.components.tile
|
# homeassistant.components.tile
|
||||||
pytile==2024.12.0
|
pytile==2024.12.0
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ def mock_pythonkuma() -> Generator[AsyncMock]:
|
|||||||
monitor_response_time_seconds_1d=0.10920649819494585,
|
monitor_response_time_seconds_1d=0.10920649819494585,
|
||||||
monitor_response_time_seconds_30d=0.0993296843901052,
|
monitor_response_time_seconds_30d=0.0993296843901052,
|
||||||
monitor_response_time_seconds_365d=0.1043971646081903,
|
monitor_response_time_seconds_365d=0.1043971646081903,
|
||||||
|
monitor_tags=["tag1", "tag2:value"],
|
||||||
)
|
)
|
||||||
monitor_2 = UptimeKumaMonitor(
|
monitor_2 = UptimeKumaMonitor(
|
||||||
monitor_id=2,
|
monitor_id=2,
|
||||||
@@ -88,6 +89,7 @@ def mock_pythonkuma() -> Generator[AsyncMock]:
|
|||||||
monitor_response_time_seconds_1d=0.16390272373540857,
|
monitor_response_time_seconds_1d=0.16390272373540857,
|
||||||
monitor_response_time_seconds_30d=0.3371273224043715,
|
monitor_response_time_seconds_30d=0.3371273224043715,
|
||||||
monitor_response_time_seconds_365d=0.34270098747886596,
|
monitor_response_time_seconds_365d=0.34270098747886596,
|
||||||
|
monitor_tags=["tag1", "tag2:value"],
|
||||||
)
|
)
|
||||||
monitor_3 = UptimeKumaMonitor(
|
monitor_3 = UptimeKumaMonitor(
|
||||||
monitor_id=3,
|
monitor_id=3,
|
||||||
@@ -106,6 +108,7 @@ def mock_pythonkuma() -> Generator[AsyncMock]:
|
|||||||
monitor_response_time_seconds_1d=None,
|
monitor_response_time_seconds_1d=None,
|
||||||
monitor_response_time_seconds_30d=None,
|
monitor_response_time_seconds_30d=None,
|
||||||
monitor_response_time_seconds_365d=None,
|
monitor_response_time_seconds_365d=None,
|
||||||
|
monitor_tags=[],
|
||||||
)
|
)
|
||||||
|
|
||||||
with (
|
with (
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
'monitor_response_time_seconds_30d': 0.0993296843901052,
|
'monitor_response_time_seconds_30d': 0.0993296843901052,
|
||||||
'monitor_response_time_seconds_365d': 0.1043971646081903,
|
'monitor_response_time_seconds_365d': 0.1043971646081903,
|
||||||
'monitor_status': 1,
|
'monitor_status': 1,
|
||||||
|
'monitor_tags': list([
|
||||||
|
'tag1',
|
||||||
|
'tag2:value',
|
||||||
|
]),
|
||||||
'monitor_type': 'http',
|
'monitor_type': 'http',
|
||||||
'monitor_uptime_ratio_1d': 1,
|
'monitor_uptime_ratio_1d': 1,
|
||||||
'monitor_uptime_ratio_30d': 0.9993369956431142,
|
'monitor_uptime_ratio_30d': 0.9993369956431142,
|
||||||
@@ -31,6 +35,10 @@
|
|||||||
'monitor_response_time_seconds_30d': 0.3371273224043715,
|
'monitor_response_time_seconds_30d': 0.3371273224043715,
|
||||||
'monitor_response_time_seconds_365d': 0.34270098747886596,
|
'monitor_response_time_seconds_365d': 0.34270098747886596,
|
||||||
'monitor_status': 1,
|
'monitor_status': 1,
|
||||||
|
'monitor_tags': list([
|
||||||
|
'tag1',
|
||||||
|
'tag2:value',
|
||||||
|
]),
|
||||||
'monitor_type': 'port',
|
'monitor_type': 'port',
|
||||||
'monitor_uptime_ratio_1d': 0.9992223950233281,
|
'monitor_uptime_ratio_1d': 0.9992223950233281,
|
||||||
'monitor_uptime_ratio_30d': 0.9990979870869731,
|
'monitor_uptime_ratio_30d': 0.9990979870869731,
|
||||||
@@ -49,6 +57,8 @@
|
|||||||
'monitor_response_time_seconds_30d': None,
|
'monitor_response_time_seconds_30d': None,
|
||||||
'monitor_response_time_seconds_365d': None,
|
'monitor_response_time_seconds_365d': None,
|
||||||
'monitor_status': 0,
|
'monitor_status': 0,
|
||||||
|
'monitor_tags': list([
|
||||||
|
]),
|
||||||
'monitor_type': 'json-query',
|
'monitor_type': 'json-query',
|
||||||
'monitor_uptime_ratio_1d': None,
|
'monitor_uptime_ratio_1d': None,
|
||||||
'monitor_uptime_ratio_30d': None,
|
'monitor_uptime_ratio_30d': None,
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ async def test_migrate_unique_id(
|
|||||||
monitor_port="null",
|
monitor_port="null",
|
||||||
monitor_status=MonitorStatus.UP,
|
monitor_status=MonitorStatus.UP,
|
||||||
monitor_url="test",
|
monitor_url="test",
|
||||||
|
monitor_tags=["tag1", "tag2:value"],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
mock_pythonkuma.version = UptimeKumaVersion(
|
mock_pythonkuma.version = UptimeKumaVersion(
|
||||||
@@ -86,6 +87,7 @@ async def test_migrate_unique_id(
|
|||||||
monitor_port="null",
|
monitor_port="null",
|
||||||
monitor_status=MonitorStatus.UP,
|
monitor_status=MonitorStatus.UP,
|
||||||
monitor_url="test",
|
monitor_url="test",
|
||||||
|
monitor_tags=["tag1", "tag2:value"],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
mock_pythonkuma.version = UptimeKumaVersion(
|
mock_pythonkuma.version = UptimeKumaVersion(
|
||||||
|
|||||||
Reference in New Issue
Block a user