jdeneef / ha_gpiod

gpiod based RPI gpio switches and sensors
https://github.com/jdeneef/ha_gpiod
MIT License
21 stars 4 forks source link

fix: add bias and drive mode options to switches - now tested and updated #6

Closed askz closed 3 months ago

askz commented 3 months ago

Hello, Ive tested this weekend, my fork run on my home setup, flawlessly :)

I also added documentation + renamed some variables to stick to gpiod naming conventions

please merge asap, cuz your main branch might be broken !

jdeneef commented 3 months ago

Hi, this and more is fixed and updated in the latest version tag 1.1.0. Is there anything else you added? I can't test since I don't have such a relay, but both bias and drive are options in switch in current main branch. I guess we worked in parallel.

askz commented 3 months ago

Hello, yes there's no AS_IS for example, so removed it

Can you maybe edit your invert logic stuff and merge ?

jdeneef commented 3 months ago

sry, it's all in the latest version anyway, so no use merging this anymore. fwiw from my gpiod in homeassistant:

>>> import gpiod
>>> print(gpiod.line.Bias._member_names_)
['AS_IS', 'UNKNOWN', 'DISABLED', 'PULL_UP', 'PULL_DOWN']
>>> help(gpiod.line.Bias) # for more info