Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No devices loaded #21

Open
danhajduk opened this issue Dec 16, 2024 · 0 comments
Open

No devices loaded #21

danhajduk opened this issue Dec 16, 2024 · 0 comments

Comments

@danhajduk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant