mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Restore Expected Behavior of Sonarr Upcoming Sensor (#34408)
This commit is contained in:
parent
a2fab264c4
commit
1d22936a82
@ -206,7 +206,8 @@ class SonarrSensor(Entity):
|
||||
|
||||
def update(self):
|
||||
"""Update the data for the sensor."""
|
||||
start = dt_util.utcnow().replace(microsecond=0)
|
||||
local = dt_util.start_of_local_day().replace(microsecond=0)
|
||||
start = dt_util.as_utc(local)
|
||||
end = start + timedelta(days=self.days)
|
||||
try:
|
||||
res = requests.get(
|
||||
|
Loading…
x
Reference in New Issue
Block a user