uint32_to_string => to_string (#1956)

* uint32_to_string => str_sprintf

* Apply suggested change

Co-authored-by: Mario Gabriell Karaziaki <MarioGK@users.noreply.github.com>
This commit is contained in:
Flaviu Tamas 2022-03-10 22:43:12 -05:00 committed by GitHub
parent af891ff5e3
commit f778497c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ unsigned integer.
then:
- mqtt.publish:
topic: rdm6300/tag
payload: !lambda 'return uint32_to_string(x);'
payload: !lambda 'return to_string(x);'
A tag scanned event can also be sent to the Home Assistant tag component
using :ref:`api-homeassistant_tag_scanned_action`.
@ -79,7 +79,7 @@ using :ref:`api-homeassistant_tag_scanned_action`.
# ...
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return uint32_to_string(x);'
- homeassistant.tag_scanned: !lambda 'return to_string(x);'
.. _rdm6300-tag: