Skip to content

Commit bd59051

Browse files
authored
Add HA output
1 parent 13fe222 commit bd59051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ async def main():
2323
# Print the values
2424
print("Disk values:", data.values)
2525

26+
# Get the data for Home Assistant
27+
print("Output to use with Home Assistant")
28+
print(await data.get_ha_sensor_data())
29+
2630

2731
if __name__ == "__main__":
2832
asyncio.run(main())

0 commit comments

Comments
 (0)