Add support for SOMA Smartshades devices (#26226)
* Add Soma integration * Fixed cover position get/set * Try to list devices before creating config entries to see if Soma Connect can be polled * Style fixes * Updated requirements * Updated .coveragerc to ignore Soma component * Fixed linter errors * Implemented stop command * Test coverage fixes according to feedback * Fixes to code according to feedback * Added error logging and tested config from yaml * Indentation fix * Removed unnecessary method * Wrong indentation * Added some tests * Added test for import step leading to entry creation * Added feedback to user form in case of connection error * Minor fixes according to feedback * Changed exception type in error handling for connection to Connect * To keep API consistent for Google Home and Alexa we swapped the open/closed position values back and I reversed them in this integration as well * regenerated requirements, ran black, addde __init__.py to ignore file * Added pysoma library to gen_requirements_all.py * Added missing test case * removed useless return value
This commit is contained in:
parent
21453df73e
commit
48d07467d9
15 changed files with 374 additions and 0 deletions
6
homeassistant/components/soma/const.py
Normal file
6
homeassistant/components/soma/const.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
"""Define constants for the Soma component."""
|
||||
|
||||
DOMAIN = "soma"
|
||||
HOST = "host"
|
||||
PORT = "port"
|
||||
API = "api"
|
Loading…
Add table
Add a link
Reference in a new issue