Skip to content

No devices loaded #21

@danhajduk

Description

@danhajduk

i do not have any devices loaded. I get this error when trying to reconfigure it:

Logger: homeassistant.components.select
Source: helpers/entity_platform.py:366
integration: Select (documentation, issues)
First occurred: 5:39:22 PM (2 occurrences)
Last logged: 6:38:41 PM

Error while setting up petsafe platform for select
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/petsafe/select.py", line 24, in async_setup_entry
    SelectEntities.PetSafeLitterboxSelectEntity(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        hass=hass,
        ^^^^^^^^^^
    ...<5 lines>...
        entity_category=EntityCategory.CONFIG,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/petsafe/SelectEntities.py", line 73, in __init__
    sw_version=device.firmware,
               ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/petsafe/devices.py", line 454, in firmware
    return self.data["shadow"]["state"]["reported"]["firmware"]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'firmware'
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:366
integration: Sensor (documentation, issues)
First occurred: 5:39:22 PM (2 occurrences)
Last logged: 6:38:41 PM

Error while setting up petsafe platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/petsafe/sensor.py", line 69, in async_setup_entry
    SensorEntities.PetSafeLitterboxSensorEntity(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        hass=hass,
        ^^^^^^^^^^
    ...<4 lines>...
        icon="mdi:rake",
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/petsafe/SensorEntities.py", line 86, in __init__
    sw_version=device.firmware,
               ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/petsafe/devices.py", line 454, in firmware
    return self.data["shadow"]["state"]["reported"]["firmware"]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'firmware'
Logger: homeassistant.components.button
Source: helpers/entity_platform.py:366
integration: Button (documentation, issues)
First occurred: 5:39:22 PM (2 occurrences)
Last logged: 6:38:41 PM

Error while setting up petsafe platform for button
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/petsafe/button.py", line 33, in async_setup_entry
    ButtonEntities.PetSafeLitterboxButtonEntity(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        hass=hass,
        ^^^^^^^^^^
    ...<3 lines>...
        coordinator=coordinator,
        ^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/petsafe/ButtonEntities.py", line 63, in __init__
    sw_version=device.firmware,
               ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/petsafe/devices.py", line 454, in firmware
    return self.data["shadow"]["state"]["reported"]["firmware"]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'firmware'

I have the 1.3.5 Installed and the HA is 2024.12.3

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