docs: def locked(self, lock):
          """Locks or unlocks the thermostat."""
          _LOGGER.debug("Setting the lock: %s", lock)
          value = struct.pack('BB', PROP_LOCK, bool(lock))
          self._conn.make_request(PROP_WRITE_HANDLE, value)