Commit graph

11 commits

Author SHA1 Message Date
epenet
190ef4ee35
Use EntityFeature enum in components (s** 2/2) () 2022-04-07 15:06:34 +02:00
epenet
18866e4e39
Use CoverDeviceClass in soma () 2022-04-04 18:16:24 +02:00
sebfortier2288
a9785f1b41
Add support for Soma Tilt devices () 2022-01-20 10:21:54 -10:00
epenet
1ce75f8e6b
Add cover setup type hints ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 15:13:18 +01:00
Michael
90e52cd3ad
Use relative imports [S-Z] () 2021-12-13 09:39:13 +01:00
Avi Miller
e056f9aa0f
Explicitly cast the SOMA API response to an integer ()
This resolves the `TypeError: unsupported operand type(s) for -: 'int'
and 'str'` error.

Fixes .

Signed-off-by: Avi Miller <me@dje.li>
2021-11-20 22:31:45 -08:00
badguy99
b9e4d5988f
Soma: fix battery drain issue caused by excess update requests ()
* split up update and throttle update on sensor

* Update imports

* Add blank lines for isort
2021-01-13 15:14:15 +01:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity () 2020-04-25 18:07:15 +02:00
Franck Nijhof
7653dc947a
Enable pylint unnecessary-pass ()
* Enable pylint unnecessary-pass

* Process review suggestions

* Fix smhi tests
2020-04-05 10:33:07 +02:00
Bas Nijholt
6a11e6aa72 Sort imports according to PEP8 for soma () 2019-12-09 11:19:23 +01:00
Tiit Rätsep
48d07467d9 Add support for SOMA Smartshades devices ()
* 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
2019-09-30 14:23:08 +02:00