From bfda6286a735ea9348f0b4c773d51bce3d45a937 Mon Sep 17 00:00:00 2001 From: TheHolyRoger Date: Wed, 4 May 2022 04:40:46 +0100 Subject: [PATCH 1/2] Add documentation for new `encoding` config for mqtt camera --- source/_integrations/camera.mqtt.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_integrations/camera.mqtt.markdown b/source/_integrations/camera.mqtt.markdown index 958bb75ab33d..64881d4bda5e 100644 --- a/source/_integrations/camera.mqtt.markdown +++ b/source/_integrations/camera.mqtt.markdown @@ -112,6 +112,11 @@ enabled_by_default: required: false type: boolean default: true +encoding: + description: The encoding of the image payloads received. Set to `"b64"` to enable base64 decoding of image payload. + required: false + type: string + default: None entity_category: description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity. required: false From ca445bb68b047eab2a70fe4d39b64295a99dc9cf Mon Sep 17 00:00:00 2001 From: TheHolyRoger <39387497+TheHolyRoger@users.noreply.github.com> Date: Wed, 4 May 2022 17:50:50 +0100 Subject: [PATCH 2/2] Apply doc fixes for mqtt.camera decoding Co-authored-by: Erik Montnemery --- source/_integrations/camera.mqtt.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_integrations/camera.mqtt.markdown b/source/_integrations/camera.mqtt.markdown index 64881d4bda5e..32411417616d 100644 --- a/source/_integrations/camera.mqtt.markdown +++ b/source/_integrations/camera.mqtt.markdown @@ -113,10 +113,10 @@ enabled_by_default: type: boolean default: true encoding: - description: The encoding of the image payloads received. Set to `"b64"` to enable base64 decoding of image payload. + description: The encoding of the image payloads received. Set to `"b64"` to enable base64 decoding of image payload. If not set, or if set to `null`, the image payload must be raw binary data. required: false type: string - default: None + default: null entity_category: description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity. required: false