mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Fix mqtt not publishing null payload payload to remove discovery (#118261)
This commit is contained in:
@@ -148,7 +148,7 @@ async def async_publish(
|
||||
)
|
||||
mqtt_data = hass.data[DATA_MQTT]
|
||||
outgoing_payload = payload
|
||||
if not isinstance(payload, bytes):
|
||||
if not isinstance(payload, bytes) and payload is not None:
|
||||
if not encoding:
|
||||
_LOGGER.error(
|
||||
(
|
||||
|
Reference in New Issue
Block a user