Implementing a device that can both push and pull

Hi all,

I’m looking at reworking the ADT Pulse code in HACS.

Specifically, the platform can receive email messages to signal state. This would be a push entity I would subclass from the imap component. It also (currently) scrapes the ADT site for data updates.

I was wondering if it was possible to implement push and pull in the same integration? I’d want to generally poll, but be able to have a push notification send an update to the actual sensor entities.