Skip to content

Commit

Permalink
add json to today start
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasJoKuJonas committed Oct 21, 2024
1 parent c3d0a23 commit 69316b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/webuntis/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The Web Untis sensor platform."""

from __future__ import annotations

from typing import Optional
Expand Down Expand Up @@ -132,6 +133,7 @@ def __init__(self, server: WebUntis) -> None:
async def async_update(self) -> None:
"""Update sensor data."""
self._attr_native_value = self._server.today[0]
self._attr_extra_state_attributes = {"day": self._server.day_json}


class WebUntisToayEnd(WebUntisSensorEntity):
Expand Down

0 comments on commit 69316b4

Please sign in to comment.