Add new orange pi boards to orangepi integration (#58392)
Co-authored-by: Pascal Roeleven <pascal.roeleven@hotmail.com> Co-authored-by: Pascal Roeleven <dev@pascalroeleven.nl>pull/58540/head
parent
8c1935ce0e
commit
a835917311
|
@ -10,6 +10,8 @@ from orangepi import (
|
|||
pc2,
|
||||
pcplus,
|
||||
pi3,
|
||||
pi4,
|
||||
pi4B,
|
||||
plus2e,
|
||||
prime,
|
||||
r1,
|
||||
|
@ -27,14 +29,18 @@ CONF_PIN_MODE = "pin_mode"
|
|||
CONF_PORTS = "ports"
|
||||
DEFAULT_INVERT_LOGIC = False
|
||||
PIN_MODES = {
|
||||
"duo": duo.BOARD,
|
||||
"lite": lite.BOARD,
|
||||
"lite2": lite2.BOARD,
|
||||
"neocore2": neocore2.BOARD,
|
||||
"one": one.BOARD,
|
||||
"oneplus": oneplus.BOARD,
|
||||
"pc": pc.BOARD,
|
||||
"pc2": pc2.BOARD,
|
||||
"pcplus": pcplus.BOARD,
|
||||
"pi3": pi3.BOARD,
|
||||
"pi4": pi4.BOARD,
|
||||
"pi4B": pi4B.BOARD,
|
||||
"plus2e": plus2e.BOARD,
|
||||
"prime": prime.BOARD,
|
||||
"r1": r1.BOARD,
|
||||
|
@ -42,8 +48,6 @@ PIN_MODES = {
|
|||
"zero": zero.BOARD,
|
||||
"zeroplus": zeroplus.BOARD,
|
||||
"zeroplus2": zeroplus2.BOARD,
|
||||
"duo": duo.BOARD,
|
||||
"neocore2": neocore2.BOARD,
|
||||
}
|
||||
|
||||
_SENSORS_SCHEMA = vol.Schema({cv.positive_int: cv.string})
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"domain": "orangepi_gpio",
|
||||
"name": "Orange Pi GPIO",
|
||||
"documentation": "https://www.home-assistant.io/integrations/orangepi_gpio",
|
||||
"requirements": ["OPi.GPIO==0.4.0"],
|
||||
"requirements": ["OPi.GPIO==0.5.2"],
|
||||
"codeowners": ["@pascallj"],
|
||||
"iot_class": "local_push"
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ HAP-python==4.3.0
|
|||
Mastodon.py==1.5.1
|
||||
|
||||
# homeassistant.components.orangepi_gpio
|
||||
OPi.GPIO==0.4.0
|
||||
OPi.GPIO==0.5.2
|
||||
|
||||
# homeassistant.components.flick_electric
|
||||
PyFlick==0.0.2
|
||||
|
|
Loading…
Reference in New Issue