Restore Expected Behavior of Sonarr Upcoming Sensor (#34408)

This commit is contained in:
Chris Talkington authored and Paulus Schoutsen committed 2020-04-24 14:20:49 -07:00
1 parent f02475fede
commit 7b35f5d66d
1 file changed
+2 -1
+2 -1
View File
@@ -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(