Skip to content

Commit

Permalink
Add pigpio remote functionality (#31667)
Browse files Browse the repository at this point in the history
  • Loading branch information
Poeschl committed Feb 18, 2020
1 parent f75bda7 commit 0ae86b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion homeassistant/components/rpi_gpio_pwm/light.py
Expand Up @@ -19,7 +19,7 @@
SUPPORT_TRANSITION,
Light,
)
from homeassistant.const import CONF_ADDRESS, CONF_NAME, CONF_TYPE, STATE_ON
from homeassistant.const import CONF_ADDRESS, CONF_HOST, CONF_NAME, CONF_TYPE, STATE_ON
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.restore_state import RestoreEntity
import homeassistant.util.color as color_util
Expand Down Expand Up @@ -58,6 +58,7 @@
vol.Required(CONF_TYPE): vol.In(CONF_LED_TYPES),
vol.Optional(CONF_FREQUENCY): cv.positive_int,
vol.Optional(CONF_ADDRESS): cv.byte,
vol.Optional(CONF_HOST): cv.string,
}
],
)
Expand All @@ -76,6 +77,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
if CONF_FREQUENCY in led_conf:
opt_args["freq"] = led_conf[CONF_FREQUENCY]
if driver_type == CONF_DRIVER_GPIO:
if CONF_HOST in led_conf:
opt_args["host"] = led_conf[CONF_HOST]
driver = GpioDriver(pins, **opt_args)
elif driver_type == CONF_DRIVER_PCA9685:
if CONF_ADDRESS in led_conf:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/rpi_gpio_pwm/manifest.json
Expand Up @@ -2,7 +2,7 @@
"domain": "rpi_gpio_pwm",
"name": "pigpio Daemon PWM LED",
"documentation": "https://www.home-assistant.io/integrations/rpi_gpio_pwm",
"requirements": ["pwmled==1.4.1"],
"requirements": ["pwmled==1.5.0"],
"dependencies": [],
"codeowners": []
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -1072,7 +1072,7 @@ pushetta==1.0.15
pushover_complete==1.1.1

# homeassistant.components.rpi_gpio_pwm
pwmled==1.4.1
pwmled==1.5.0

# homeassistant.components.august
py-august==0.14.0
Expand Down

0 comments on commit 0ae86b0

Please sign in to comment.