Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Exception occurred while fetching location data for tag 'Note10 Lite': time data '' does not match format '%Y%m%d%H%M%S' #25

Description

@liamlain

last post the error was fixed,but recently i received this error:

This error originated from a custom integration.

Logger: custom_components.smartthings_find.utils
Source: custom_components/smartthings_find/utils.py:377
integration: SmartThings Find (documentation, issues)
First occurred: August 27, 2024 at 11:13:47 PM (1436 occurrences)
Last logged: 11:41:26 PM

[lai's Note10 Lite] Exception occurred while fetching location data for tag 'lai's Note10 Lite': time data '' does not match format '%Y%m%d%H%M%S'
Traceback (most recent call last):
  File "/config/custom_components/smartthings_find/utils.py", line 377, in get_device_location
    utcDate = parse_stf_date(
              ^^^^^^^^^^^^^^^
  File "/config/custom_components/smartthings_find/utils.py", line 543, in parse_stf_date
    return datetime.strptime(datestr, "%Y%m%d%H%M%S").replace(tzinfo=pytz.UTC)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  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 '' does not match format '%Y%m%d%H%M%S'

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