docs: async def close(self) -> bool:
          """Close the device."""
          _LOGGER.debug('%s: Sending close command', self.name)
          if not await self._set_state(0):
              return False
  
          # Do not allow update of this device's state for 10 seconds.
          self.next_allowed_update = datetime.utcnow() + timedelta(seconds=10)
  
          # Ensure state is closed or closing.
          if self.state not in (STATE_CLOSED, STATE_CLOSING):
              # Set state to closing.
              self._update_state('5')
              self._device_json = self._device['device_info']
  
          _LOGGER.debug('%s: Close command send', self.name)
          return True