Skip to content

Date formating is causing error #5

@senna1992

Description

@senna1992

Versions:
Core-2024.3.1
Supervisor-2024.03.0
OS: 12.0
Frontend: 20240307.0

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant
Quelle: custom_components/ring_martinpham/ring_doorbell_rautsch_martinpham/doorbot.py:273
Integration: Ring (custom)
Erstmals aufgetreten: 12:35:54 (4 Vorkommnisse)
Zuletzt protokolliert: 12:38:54

Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ring_martinpham/init.py", line 299, in refresh_all
data = info["data"] = self.update_method(info["device"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ring_martinpham/init.py", line 105, in
lambda device: device.history(limit=10),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ring_martinpham/ring_doorbell_rautsch_martinpham/doorbot.py", line 273, in history
dt_at = datetime.strptime(entry["created_at"], "%Y-%m-%dT%H:%M:%S.000Z")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 554, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 333, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2024-03-17T10:50:59.023Z' does not match format '%Y-%m-%dT%H:%M:%S.000Z'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions