hass-audiobookshelf icon indicating copy to clipboard operation
hass-audiobookshelf copied to clipboard

Session Count Not Correct

Open 25garfield opened this issue 10 months ago • 0 comments

Even when no one is actively listening to the server, the session count is showing 2 sessions.

Where can I start to look to fix this?

I've removed and re-added the integration via HACs

this is the error I'm getting

AudioBookShelf version is 2.9.0

Logger: custom_components.audiobookshelf Source: helpers/update_coordinator.py:315 integration: Audiobookshelf (documentation, issues) First occurred: May 2, 2024 at 6:07:53 PM (2 occurrences) Last logged: 10:57:58 AM

Unexpected error fetching audiobookshelf data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/audiobookshelf/init.py", line 66, in _async_update_data num_users = self.api.count_active_users(users_update) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/audiobookshelf/api.py", line 41, in count_active_users for user in data["users"]: ~~~~^^^^^^^^^ TypeError: 'NoneType' object is not subscriptable

25garfield avatar May 03 '24 10:05 25garfield