render qr code string as HA template #251

This commit is contained in:
Johannes
2022-05-31 21:14:19 +02:00
parent ad4aec2e33
commit 195dcfd305

View File

@@ -429,6 +429,7 @@ class LuiPagesGen(object):
def generate_qr_page(self, navigation, heading, items, cardType, qrcode):
qrcode = self._ha_api.render_template(qrcode)
command = f"entityUpd~{heading}~{navigation}~{qrcode}"
# Get items and construct cmd string
for item in items: