Skip to content

Commit

Permalink
Correct syntaxe error in Update Light.py (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlacKTM1190 authored Nov 30, 2023
1 parent 294bb17 commit 2fbd864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sensors/Light.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def setup(self):
'payload_on': "ON",
'on_command_type': "brightness",
'retain': 'false',
'state_value_template: "{{ 'ON' if value | int(0) > 0 else 'OFF' }}"
'state_value_template': "{{ 'ON' if value | int(0) > 0 else 'OFF' }}"
'device': self.device}

if self.mqtt is not None:
Expand Down

0 comments on commit 2fbd864

Please sign in to comment.