You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
Thanks for this. The 2021.12 update officially broke all of my timestamp entities that didn't have a timezone, including Plant Gateway's. This helped me resolve manually. Would be nice to see something like this change enter the source.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add module:
pip3 install python-dateutil
Simply added/modified the following to plantgw.py:
Added import:
from dateutil.tz import tzlocal
Modified
now()
to includetzlocal()
:MQTTAttributes.TIMESTAMP.value: datetime.now(tzlocal()).isoformat(),
data['timestamp'] = datetime.now(tzlocal()).strftime(self.config.mqtt_timestamp_format)
The text was updated successfully, but these errors were encountered: