async refresh(handle) {
        if (!this.isInitialized) {
            return;
        }

        const value = await handle.getHomie();

        if (value !== null) {
            try {
                // @ts-ignore
                await this.publish(handle.getBaseTopic(), value, {qos: handle.getQoS(), retain: handle.retained});
            } catch (e) {
                if (e.message !== "client disconnecting" && e.message !== "connection closed") {
                    Logger.warn("MQTT publication failed, topic " + handle.getBaseTopic(), e);
                }
            }
        }
    }
Helper function for handles to update their published value.

@param {import("./handles/MqttHandle")} handle
@return {Promise<void>}