Skip to content

Commit 253c6dc

Browse files
authored
Fix type hint for get_ha_sensor_data (#23)
1 parent 69140b4 commit 253c6dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glances_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async def get_metrics(self, element: str) -> None:
8888
else:
8989
raise exceptions.GlancesApiError("Element data not available")
9090

91-
async def get_ha_sensor_data(self) -> dict[str, Any] | None:
91+
async def get_ha_sensor_data(self) -> dict[str, Any]:
9292
"""Create a dictionary with data for Home Assistant sensors."""
9393
await self.get_data("all")
9494

0 commit comments

Comments
 (0)