From cfc2232c22f51c7aadfc258ba6a3adced62c668c Mon Sep 17 00:00:00 2001 From: sfam Date: Wed, 26 Aug 2015 00:02:52 +0100 Subject: [PATCH] fix pylint warnings --- homeassistant/components/switch/rpi_gpio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/rpi_gpio.py b/homeassistant/components/switch/rpi_gpio.py index 9c1caaea0b1..a1f9f61192b 100644 --- a/homeassistant/components/switch/rpi_gpio.py +++ b/homeassistant/components/switch/rpi_gpio.py @@ -46,7 +46,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): if GPIO is None: _LOGGER.error('RPi.GPIO not available. rpi_gpio ports ignored.') return - + # pylint: disable=no-member GPIO.setmode(GPIO.BCM) switches = [] @@ -73,9 +73,9 @@ class RPiGPIOSwitch(ToggleEntity): def __init__(self, name, gpio, active_state): self._name = name or DEVICE_DEFAULT_NAME - self._state = False if self._active_state == "HIGH" else True self._gpio = gpio self._active_state = active_state + self._state = False if self._active_state == "HIGH" else True # pylint: disable=no-member GPIO.setup(gpio, GPIO.OUT)