mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Raise severity of MQTT callback deprecation warning (#22792)
This commit is contained in:
parent
55619da722
commit
353fca3b6e
@ -371,7 +371,7 @@ async def async_subscribe(hass: HomeAssistantType, topic: str,
|
||||
wrapped_msg_callback = msg_callback
|
||||
# If we have 3 paramaters with no default value, wrap the callback
|
||||
if non_default == 3:
|
||||
_LOGGER.info(
|
||||
_LOGGER.warning(
|
||||
"Signature of MQTT msg_callback '%s.%s' is deprecated",
|
||||
inspect.getmodule(msg_callback).__name__, msg_callback.__name__)
|
||||
wrapped_msg_callback = wrap_msg_callback(msg_callback)
|
||||
|
Loading…
x
Reference in New Issue
Block a user