Skip to content

Commit

Permalink
fix 2024.8 payload_template deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbgeek authored and zanix committed Aug 9, 2024
1 parent 145b53e commit 248db29
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions script/inovelli_blue_led_zigbee2mqtt.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
blueprint:
name: "Inovelli Blue LED (Zigbee2MQTT)"
name: 'Inovelli Blue LED (Zigbee2MQTT)'
description: |
Set LED effects for Inovelli Blue Series Switches using Zigbee2MQTT.
ℹ️ Version: 2024.4.0
ℹ️ Version: 2024.8.0
To update this blueprint, read [Re-importing a blueprint](https://www.home-assistant.io/docs/automation/using_blueprints/#re-importing-a-blueprint)

Check warning on line 8 in script/inovelli_blue_led_zigbee2mqtt.yaml

View workflow job for this annotation

GitHub Actions / 🧹 YAML Lint

line too long
Expand Down Expand Up @@ -57,7 +57,7 @@ blueprint:
```
light.entity_name: "zigbee2mqtt/path/to/device/set"
```
default: ""
default: ''
selector:
object:

Expand Down Expand Up @@ -545,7 +545,7 @@ variables:
{% endif %}
sequence:
- alias: "Debug: Send notification"
- alias: 'Debug: Send notification'
if:
- condition: template
value_template: '{{ debug == true }}'
Expand All @@ -566,7 +566,7 @@ sequence:
command_path_base: {{ command_path_base }}
command_path_map: {{ command_path_map }}
- alias: "Check for an empty entity list"
- alias: 'Check for an empty entity list'
condition: template
value_template: |
{{ entity_list|count > 0 }}
Expand Down Expand Up @@ -610,7 +610,7 @@ sequence:
{{ command_path_base }}/{{ device_identifier }}/set
{% endif %}
- alias: "Debug: Send notification"
- alias: 'Debug: Send notification'
if:
- condition: template
value_template: '{{ debug == true }}'
Expand All @@ -626,11 +626,11 @@ sequence:
topic: {{ command_path }}
payload: {{ payload }}
- alias: "Send payload to the switch"
- alias: 'Send payload to the switch'
service: mqtt.publish
data:
topic: '{{ command_path }}'
payload_template: "{{ payload }}"
payload: '{{ payload }}'

icon: mdi:led-on
mode: parallel
Expand Down

0 comments on commit 248db29

Please sign in to comment.