From 6df67d2852354fa574360ad94559f56887f34f1e Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Sun, 24 Jan 2016 16:37:38 +0100 Subject: [PATCH] Send correct command to pyrfxtrx Although it seems to work with send_on, it throws an logged error. Using correct command against pyrfxtrx removes this error. --- homeassistant/components/light/rfxtrx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/rfxtrx.py b/homeassistant/components/light/rfxtrx.py index 64389a0fa59..0ee6d35d5f7 100644 --- a/homeassistant/components/light/rfxtrx.py +++ b/homeassistant/components/light/rfxtrx.py @@ -149,7 +149,7 @@ class RfxtrxLight(Light): self._brightness = ((brightness + 4) * 100 // 255 - 1) if hasattr(self, '_event') and self._event: - self._event.device.send_on(rfxtrx.RFXOBJECT.transport, + self._event.device.send_dim(rfxtrx.RFXOBJECT.transport, self._brightness) self._brightness = (self._brightness * 255 // 100)