docs: def _update_activities(self):
          """Update stored activities and update caches as required."""
          self._activities = self._activities_request()
          _LOGGER.debug("Device Activities Response: %s", self._activities)
  
          if not self._activities:
              self._activities = []
          elif not isinstance(self._activities, (list, tuple)):
              self._activities = [self._activities]
  
          self._update_events()