mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
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:
parent
af891ff5e3
commit
f778497c8a
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user