parent
d4b180cf75
commit
db3eeec78c
|
@ -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
|
||||
|
@ -439,7 +439,8 @@ class TadoConnector:
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue