We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cadd3c commit 9b24a8dCopy full SHA for 9b24a8d
1 file changed
glances_api/__init__.py
@@ -150,7 +150,7 @@ async def get_ha_sensor_data(self) -> dict[str, Any]:
150
sensor_data["network"] = {}
151
for network in networks:
152
sensor_data["network"][network["interface_name"]] = {
153
- "is_up": network["is_up"],
+ "is_up": network.get("is_up"),
154
"rx": round(network["rx"] / 1024, 1),
155
"tx": round(network["tx"] / 1024, 1),
156
"speed": round(network["speed"] / 1024**3, 1),
0 commit comments