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.06k stars 29.73k forks source link

Error with ClearPass integration #56197

Closed ghost closed 2 years ago

ghost commented 2 years ago

The problem

The ClearPass device tracking integration is not working anymore and are showing a lot of errors in logs. My ClearPass server is running 6.10.1.

Im happy to assist if a developer need access to my HA environment for debugging.

What is version of Home Assistant Core has the issue?

core-2021.9.6

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

ClearPass

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

File "/usr/src/homeassistant/homeassistant/components/cppm_tracker/device_tracker.py", line 57, in scan_devices
    self.get_cppm_data()
  File "/usr/src/homeassistant/homeassistant/components/cppm_tracker/device_tracker.py", line 69, in get_cppm_data
    endpoints = self._cppm.get_endpoints(100)["_embedded"]["items"]
KeyError: '_embedded'

2021-09-13 19:28:44 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 352, in async_device_tracker_scan
    found_devices = await scanner.async_scan_devices()
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 829, in async_scan_devices
    return await self.hass.async_add_executor_job(self.scan_devices)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/cppm_tracker/device_tracker.py", line 57, in scan_devices
    self.get_cppm_data()
  File "/usr/src/homeassistant/homeassistant/components/cppm_tracker/device_tracker.py", line 69, in get_cppm_data
    endpoints = self._cppm.get_endpoints(100)["_embedded"]["items"]
KeyError: '_embedded'

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

cppm_tracker documentation cppm_tracker source (message by IssueLinks)