Skip to content

Commit

Permalink
Ignore ItemTimeSeriesUpdatedEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Feb 12, 2024
1 parent 470b60d commit 9d736fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/HABApp/openhab/connection/plugins/events_sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ async def sse_task(self):
if not oh3 and e_type == 'ItemStateEvent':
continue

# https://github.com/spacemanspiff2007/HABApp/issues/437
# openHAB will automatically restore the future states of the item
# which means we can safely ignore these events because we will see the ItemStateUpdatedEvent
if e_type == 'ItemTimeSeriesUpdatedEvent':
continue

# process
_see_handler(e_json, oh3)
except Exception as e:
Expand Down

0 comments on commit 9d736fe

Please sign in to comment.