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

Unifi integration gives error on startup #93817

Closed
MrMcGyver opened this issue May 30, 2023 · 1 comment · Fixed by #94093
Closed

Unifi integration gives error on startup #93817

MrMcGyver opened this issue May 30, 2023 · 1 comment · Fixed by #94093
Assignees

Comments

@MrMcGyver
Copy link

The problem

After adding the Unifi integration I am seeing an error on startup. This error only shows up during a reboot

What version of Home Assistant Core has the issue?

Home Assistant 2023.5.4 Supervisor 2023.04.1 Operating System 10.2 Frontend 20230503.3 - latest

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

Unifi

Link to integration documentation on our website

https://www.home-assistant.io/integrations/unifi https://github.com/home-assistant/core/tree/dev/homeassistant/components/unifi

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-05-30 09:59:31.276 ERROR (MainThread) [homeassistant.components.update] Error while setting up unifi platform for update
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/unifi/update.py", line 91, in async_setup_entry
controller.register_platform_add_entities(
File "/usr/src/homeassistant/homeassistant/components/unifi/controller.py", line 230, in register_platform_add_entities
async_load_entities(description)
File "/usr/src/homeassistant/homeassistant/components/unifi/controller.py", line 209, in async_load_entities
async_add_unifi_entity(list(api_handler))
File "/usr/src/homeassistant/homeassistant/components/unifi/controller.py", line 200, in async_add_unifi_entity
[
File "/usr/src/homeassistant/homeassistant/components/unifi/controller.py", line 201, in <listcomp>
unifi_platform_entity(obj_id, self, description)
File "/usr/src/homeassistant/homeassistant/components/unifi/entity.py", line 106, in __init__
self._attr_device_info = description.device_info_fn(controller.api, obj_id)
File "/usr/src/homeassistant/homeassistant/components/unifi/entity.py", line 57, in async_device_device_info_fn
hw_version=str(device.board_revision),
File "/usr/local/lib/python3.10/site-packages/aiounifi/models/device.py", line 672, in board_revision
return self.raw["board_rev"]
KeyError: 'board_rev'

Additional information

As noted, this error only occurs on boot up.
One link I found mentioned "board_rev being deprecated":
https://community.ui.com/questions/Removed-board-revision-information-in-UniFi-Controller-6-0-x/82cb254f-121b-4bda-b62e-1dd775cd9ce0

@home-assistant
Copy link

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

Code owner commands

Code owners of unifi 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 unifi Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


unifi documentation
unifi source
(message by IssueLinks)

@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants