hass-audiobookshelf
hass-audiobookshelf copied to clipboard
Session Count Not Correct
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