docs: def _on_mode_change(self, mode):
          """Mode change broadcast from Abode SocketIO server."""
          if isinstance(mode, (tuple, list)):
              mode = mode[0]
  
          if mode is None:
              _LOGGER.warning("Mode change event with no mode.")
              return
  
          if not mode or mode.lower() not in CONST.ALL_MODES:
              _LOGGER.warning("Mode change event with unknown mode: %s", mode)
              return
  
          _LOGGER.debug("Alarm mode change event to: %s", mode)
  
          # We're just going to convert it to an Alarm device
          alarm_device = self._abode.get_alarm(refresh=True)
  
          # At the time of development, refreshing after mode change notification
          # didn't seem to get the latest update immediately. As such, we will
          # force the mode status now to match the notification.
          # pylint: disable=W0212
          alarm_device._json_state['mode']['area_1'] = mode
  
          for callback in self._device_callbacks.get(alarm_device.device_id, ()):
              _execute_callback(callback, alarm_device)