We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac0ae9 commit 2e4838bCopy full SHA for 2e4838b
weather/__init__.py
@@ -166,8 +166,8 @@ def __get_current_sunrise_sunset(self, next=False):
166
shift_days = int((datetime.now() - self._device["forecast"][today_index]["sun"]["rise"]).days)
167
if not next:
168
return {
169
- "sunrise": self._device["forecast"][today_index]["sun"]["rise"] - timedelta(days=shift_days),
170
- "sunset": self._device["forecast"][today_index]["sun"]["set"] - timedelta(days=shift_days),
+ "sunrise": self._device["forecast"][today_index]["sun"]["rise"] + timedelta(days=shift_days),
+ "sunset": self._device["forecast"][today_index]["sun"]["set"] + timedelta(days=shift_days),
171
}
172
173
next = False
0 commit comments