mirror of
https://github.com/thecode/ha-rpi_gpio.git
synced 2025-08-03 16:07:46 +00:00
Compare commits
No commits in common. "main" and "2025.2.0" have entirely different histories.
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5.6.0
|
||||
uses: actions/setup-python@v5.4.0
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
|
@ -52,7 +52,6 @@ async def async_setup_platform(
|
||||
|
||||
sensors = []
|
||||
for sensor in config.get(CONF_SENSORS):
|
||||
try:
|
||||
sensors.append(
|
||||
GPIODBinarySensor(
|
||||
hub,
|
||||
@ -64,8 +63,6 @@ async def async_setup_platform(
|
||||
sensor.get(CONF_BOUNCETIME)
|
||||
)
|
||||
)
|
||||
except Exception as e:
|
||||
_LOGGER.error(f"Failed to add binary sensor {sensor[CONF_NAME]} for port {sensor[CONF_PORT]}: {e}")
|
||||
|
||||
async_add_entities(sensors)
|
||||
|
||||
|
@ -71,7 +71,6 @@ async def async_setup_platform(
|
||||
invert_relay = config[CONF_INVERT_RELAY]
|
||||
covers = []
|
||||
for cover in config.get(CONF_COVERS):
|
||||
try:
|
||||
covers.append(
|
||||
GPIODCover(
|
||||
hub,
|
||||
@ -87,8 +86,6 @@ async def async_setup_platform(
|
||||
cover.get(CONF_UNIQUE_ID) or f"{DOMAIN}_{cover.get(CONF_RELAY_PIN)}_{cover[CONF_NAME].lower().replace(' ', '_')}",
|
||||
)
|
||||
)
|
||||
except Exception as e:
|
||||
_LOGGER.error(f"Failed to add cover {cover[CONF_NAME]} for port {cover.get(CONF_RELAY_PIN)}:{cover.get(CONF_STATE_PIN)}: {e}")
|
||||
|
||||
async_add_entities(covers)
|
||||
|
||||
|
@ -7,5 +7,5 @@
|
||||
"iot_class": "local_push",
|
||||
"issue_tracker": "https://github.com/thecode/ha-rpi_gpio/issues",
|
||||
"requirements": [ "gpiod>=2.2.1" ],
|
||||
"version": "2025.2.1"
|
||||
"version": "2025.2.0"
|
||||
}
|
||||
|
@ -56,7 +56,6 @@ async def async_setup_platform(
|
||||
|
||||
switches = []
|
||||
for switch in config.get(CONF_SWITCHES):
|
||||
try:
|
||||
switches.append(
|
||||
GPIODSwitch(
|
||||
hub,
|
||||
@ -69,8 +68,6 @@ async def async_setup_platform(
|
||||
switch[CONF_PERSISTENT]
|
||||
)
|
||||
)
|
||||
except Exception as e:
|
||||
_LOGGER.error(f"Failed to add switch {switch[CONF_NAME]} for port {switch[CONF_PORT]}: {e}")
|
||||
|
||||
async_add_entities(switches)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
black==25.1.0
|
||||
flake8==7.3.0
|
||||
isort==6.0.1
|
||||
mypy==1.17.0
|
||||
pre-commit==4.2.0
|
||||
black==24.10.0
|
||||
flake8==7.1.1
|
||||
isort==5.13.2
|
||||
mypy==1.14.1
|
||||
pre-commit==4.1.0
|
||||
pydocstyle==6.3.0
|
||||
pylint==3.3.7
|
||||
pylint==3.3.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user