mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Add signal repetition to rfxtrx
This commit is contained in:
parent
b93ebe1936
commit
aec269050f
@ -167,7 +167,7 @@ class RfxtrxLight(Light):
|
||||
if brightness is None:
|
||||
self._brightness = 100
|
||||
for _ in range(self.signal_repetitions):
|
||||
self._eventent.device.send_on(rfxtrx.RFXOBJECT.transport)
|
||||
self._event.device.send_on(rfxtrx.RFXOBJECT.transport)
|
||||
else:
|
||||
self._brightness = ((brightness + 4) * 100 // 255 - 1)
|
||||
for _ in range(self.signal_repetitions):
|
||||
|
Loading…
x
Reference in New Issue
Block a user