Skip to content

Epic games card fails to display - AttributeError: 'NoneType' object has no attribute 'split' #10

@V4ler1an

Description

@V4ler1an

I've changed nothing on my HA other than the recent 2024.7 update. The Epic Games card was working fine last week. I'm not certain if it's the cause but it looks possible. Wondered if anyone else has experienced issues recently? I've found this in the HA Core logs:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:727
integration: Sensor (documentation, issues)
First occurred: 5 July 2024 at 22:16:35 (1 occurrences)
Last logged: 5 July 2024 at 22:16:35

epic_games: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 727, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1298, in async_device_update
await hass.async_add_executor_job(self.update)
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/epic_games/sensor.py", line 185, in update
runtime=game["viewableDate"].split("T")[0],
^^^^^^^^^^^^^^^^^^^^^^^^^^
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:727
integration: Sensor (documentation, issues)
First occurred: 5 July 2024 at 22:16:35 (1 occurrences)
Last logged: 5 July 2024 at 22:16:35

epic_games: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 727, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1298, in async_device_update
await hass.async_add_executor_job(self.update)
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/epic_games/sensor.py", line 185, in update
runtime=game["viewableDate"].split("T")[0],
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

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