home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.88k stars 30.11k forks source link

FGLair configuration succeeds, but no entities found #126745

Open cshuttle opened 6 days ago

cshuttle commented 6 days ago

The problem

Configured integration does not return any devices

What version of Home Assistant Core has the issue?

core-2024.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

FGLair

Link to integration documentation on our website

https://www.home-assistant.io/integrations/fujitsu_fglair/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The following appears in the logs with debug activated:

2024-09-25 07:59:47.269 DEBUG (MainThread) [homeassistant.components.fujitsu_fglair.coordinator] Finished fetching Fujitsu HVAC data data in 8.931 seconds (success: True)
2024-09-25 07:59:47.269 ERROR (MainThread) [homeassistant.components.climate] Error while setting up fujitsu_fglair platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 369, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 628, in async_add_entities
    for entity in new_entities:
  File "/usr/src/homeassistant/homeassistant/components/fujitsu_fglair/climate.py", line 70, in <genexpr>
    FGLairDevice(entry.runtime_data, device)
  File "/usr/src/homeassistant/homeassistant/components/fujitsu_fglair/climate.py", line 112, in __init__
    self._set_attr()
  File "/usr/src/homeassistant/homeassistant/components/fujitsu_fglair/climate.py", line 160, in _set_attr
    self._attr_swing_mode = FUJI_TO_HA_SWING.get(self.device.swing_mode)
                                                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ayla_iot_unofficial/fujitsu_hvac.py", line 309, in swing_mode
    if self.horizontal_swing and self.vertical_swing:
       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ayla_iot_unofficial/fujitsu_hvac.py", line 356, in horizontal_swing
    raise SettingNotSupportedError("Device does not support horizontal swing")
ayla_iot_unofficial.fujitsu_hvac.SettingNotSupportedError: Device does not support horizontal swing

Additional information

Model ASUG12LMAS.

home-assistant[bot] commented 6 days ago

Hey there @crevetor, mind taking a look at this issue as it has been labeled with an integration (fujitsu_fglair) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `fujitsu_fglair` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign fujitsu_fglair` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


fujitsu_fglair documentation fujitsu_fglair source (message by IssueLinks)

crevetor commented 6 days ago

Fixed with https://github.com/home-assistant/core/pull/125439

@home-assistant close