mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Make MQTT number respect retain setting (#47270)
This commit is contained in:
parent
027d125617
commit
959181a2e9
@ -28,6 +28,7 @@ from . import (
|
||||
subscription,
|
||||
)
|
||||
from .. import mqtt
|
||||
from .const import CONF_RETAIN
|
||||
from .debug_info import log_messages
|
||||
from .mixins import (
|
||||
MQTT_AVAILABILITY_SCHEMA,
|
||||
@ -161,6 +162,7 @@ class MqttNumber(MqttEntity, NumberEntity, RestoreEntity):
|
||||
self._config[CONF_COMMAND_TOPIC],
|
||||
current_number,
|
||||
self._config[CONF_QOS],
|
||||
self._config[CONF_RETAIN],
|
||||
)
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user