Skip to content

Commit

Permalink
Tado: fix 113982 (#114109)
Browse files Browse the repository at this point in the history
fix-113982
  • Loading branch information
niro1987 authored Mar 24, 2024
1 parent d4b180c commit db3eeec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/tado/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Support for the (unofficial) Tado API."""

from datetime import timedelta
from datetime import datetime, timedelta
import logging

from PyTado.interface import Tado
Expand Down Expand Up @@ -439,7 +439,8 @@ def set_temperature_offset(self, device_id, offset):

def set_meter_reading(self, reading: int) -> dict[str, str]:
"""Send meter reading to Tado."""
dt: str = datetime.now().strftime("%Y-%m-%d")
try:
return self.tado.set_eiq_meter_readings(reading=reading)
return self.tado.set_eiq_meter_readings(date=dt, reading=reading)
except RequestException as exc:
raise HomeAssistantError("Could not set meter reading") from exc

0 comments on commit db3eeec

Please sign in to comment.