home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.99k stars 2.72k forks source link

Permission denied to access property "localName" and "nodeType" when used with Unifi integration #15191

Closed sammcj closed 1 year ago

sammcj commented 1 year ago

Checklist

Describe the issue you are experiencing

The HA logs are being spammed with these two errors almost constantly:

  1. /frontend_latest/8ef6edc0.js:28:25920 Error: Permission denied to access property "nodeType"
  2. /frontend_latest/8ef6edc0.js:28:18789 Error: Permission denied to access property "localName"

Describe the behavior you expected

Not have errors in the logs

Steps to reproduce the issue

  1. Run Home Assistant 2023.1.7 from Docker (stable image)
  2. Check logs

What version of Home Assistant Core has the issue?

2023.1.7

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 110

Which operating system are you using to run this browser?

macOS 13.2

State of relevant entities

Unifi integration enabled and working normally

Problem-relevant frontend configuration

## Logs

2023-01-25 18:09:27.950 ERROR (MainThread) [frontend.js.latest.202301100] http://nas:8123/frontend_latest/8ef6edc0.js:28:25920 Error: Permission denied to access property "nodeType"
2023-01-25 18:09:29.440 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Nmap Tracker 192.168.0.0/24 for device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 70, in async_setup_entry
    dev_reg.async_remove_device(device_id)
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 521, in async_remove_device
    device = self.devices.pop(device_id)
  File "/usr/local/lib/python3.10/_collections_abc.py", line 957, in pop
    value = self[key]
  File "/usr/local/lib/python3.10/collections/__init__.py", line 1106, in __getitem__
    raise KeyError(key)
KeyError: 'b4691524b9e152a6bcbb3bd1409e91b3'

and

2023-01-25 18:09:30.220 ERROR (MainThread) [frontend.js.latest.202301100] http://nas:8123/frontend_latest/8ef6edc0.js:28:18789 Error: Permission denied to access property "localName"
Rate limit below 5, sleeping for 1 second.
2023-01-25 18:09:31.488 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 289, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/unifi/update.py", line 134, in async_setup_entry
    async_load_entities(description)
  File "/usr/src/homeassistant/homeassistant/components/unifi/update.py", line 128, in async_load_entities
    async_create_entity(ItemEvent.CHANGED, obj_id)
  File "/usr/src/homeassistant/homeassistant/components/unifi/update.py", line 121, in async_create_entity
    entity = UnifiDeviceUpdateEntity(obj_id, controller, description)
  File "/usr/src/homeassistant/homeassistant/components/unifi/entity.py", line 71, in __init__
    self._attr_device_info = description.device_info_fn(controller.api, obj_id)
  File "/usr/src/homeassistant/homeassistant/components/unifi/update.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 696, in board_revision
    return self.raw["board_rev"]
KeyError: 'board_rev'


### Javascript errors shown in your browser console/inspector

_No response_

### Additional information

_No response_
github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.