Commit graph

93 commits

Author SHA1 Message Date
Marc Mueller
ac86738572
Update pylutron to 0.2.15 (#122455) 2024-07-23 22:41:16 +03:00
G Johansson
ca4c617d4b
Add TURN_OFF/TURN_ON feature flags for fan (#121447) 2024-07-19 11:35:24 +02:00
G Johansson
cac55d0f47
Remove YAML import for lutron (#120159)
* Remove YAML import for lutron

* Restore constants
2024-06-22 18:23:35 +02:00
Joost Lekkerkerker
b54077026a
Bump pylutron to 0.2.13 (#117062)
* Bump pylutron to 0.2.13

* Bump pylutron to 0.2.13
2024-05-08 14:32:23 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
J. Nick Koston
cb9914becd
Fix non-thread-safe state write in lutron event (#116829)
fixes #116746
2024-05-05 15:43:39 +02:00
Joost Lekkerkerker
2977ec4872
Add event platform to Lutron (#109121)
* Add event platform to Lutron

* Add event platform to Lutron

* Fix

* Fix

* Fix

* Add deprecation note

* Fix

* Fix

* Update homeassistant/components/lutron/event.py

* Update homeassistant/components/lutron/event.py

* Fix
2024-04-23 11:54:19 +02:00
cdheiser
7228f63c4a
Fix Lutron light brightness values (#114794)
Fix brightness values in light.py

Bugfix to set the brightness to 0-100 which is what Lutron expects.
2024-04-04 11:24:02 +02:00
Sid
6113b99ddd
Replace pylint pointless-statement with ruff B018 (#113582)
* Replace pylint pointless-statement with ruff B018

* fix occurrences of B018

* disable pylint expression-not-assigned as well

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-17 10:58:14 +01:00
wilburCforce
28ef898775
Support lutron transition time and flash for lights (#109185)
* support transition time for lights

* bug fix and support for FLASH

* updated to flash() to match changes coming in pylutron

* bumped pylutron version in anticipation of next release

* Update manifest.json

* Update requirements_all.txt

* Update requirements_test_all.txt

* Update requirements_test_all.txt

* nits and code improves
2024-03-14 23:07:16 +01:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] (#112700) 2024-03-08 09:01:29 -05:00
Erik Montnemery
52e7912caf
Migrate integrations i-m to generic flowhandler (#111863) 2024-02-29 20:08:46 +01:00
Joost Lekkerkerker
47b7dd4a01
Set Lutron switch to device name (#111293) 2024-02-24 20:18:06 +01:00
wilburCforce
88f72009c6
Fix uuid issue in Lutron (#110524) 2024-02-19 09:30:58 +01:00
wilburCforce
a317196bda
Update pylutron to 0.2.12 (#110414) 2024-02-13 08:37:58 +01:00
wilburCforce
29d3e17461
Update pylutron to 0.2.11 (#109853) 2024-02-08 13:32:57 +01:00
wilburCforce
430b9cef43
Fix device type in Lutron (#109401)
remove testing code
2024-02-02 22:42:53 +02:00
wilburCforce
39d263599e
Add lutron fan entity (#107402)
* add support for fan entity

* removed unused variables

* removed preset leftovers - not needed

* added deprecation for fans

* Update __init__.py

* fix typing

* initial updates based on review

* updated to search on unique ID instead of entity ID.

* updates for nits

* nits updates

* updates for new callback

* removed async per nits

* wrapped comments into shorter lines

* Add comment comma

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-29 20:58:12 +01:00
Joost Lekkerkerker
114bf0da34
Update Lutron in callback (#108779)
* Update Lutron in callback

* Update Lutron in callback

* Remove abstractmethod

* Don't do IO in constructor

* Split fetching and setting
2024-01-25 12:54:31 +01:00
Joost Lekkerkerker
d0da457a04
Add device to Lutron (#107467)
* Add typing to Lutron platforms

* Add devices to Lutron

* Add devices to Lutron

* Fix typing

* Fix

* Add name

* Fix lights

* Comment out ESA

* Fix domain

* Fix domain

* Fix

* Make generic keypad base class
2024-01-22 15:52:59 +01:00
Joost Lekkerkerker
15ce70606f
Add typing to Lutron platforms (#107408)
* Add typing to Lutron platforms

* Update homeassistant/components/lutron/switch.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Update homeassistant/components/lutron/__init__.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Update homeassistant/components/lutron/entity.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Update homeassistant/components/lutron/scene.py

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Fix typing

* Fix typing

---------

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-01-07 17:48:23 +01:00
Joost Lekkerkerker
2b43271c3b
Move Lutron entry data to typed class (#107256)
* Move Lutron entry data to typed class

* Move Lutron entry data to typed class

* Exclude file

* Update homeassistant/components/lutron/__init__.py

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>

---------

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
2024-01-05 22:04:10 +01:00
Joost Lekkerkerker
9672ca5719
Extract LutronDevice into separate file (#107285) 2024-01-05 20:38:02 +01:00
wilburCforce
52653220e3
Add code owner for Lutron (#107280)
* hassfest enable

* update code owner

* fix code owner typo

* removed garbage
2024-01-05 20:07:08 +01:00
Joost Lekkerkerker
3d338b5719
Sort Lutron platforms (#107257) 2024-01-05 17:31:50 +01:00
wilburCforce
be6cf7d3ae
Add Lutron config flow (#98489)
* rough in structure for config_flow

* updated json files

* initial conversion to config_flow

* minor updates

* Update binary_sensor.py

* Update config_flow.py

* Update __init__.py

* updates beased on requested changes

* Update const.py

added doc note for ruff

* updated based on suggestions

* updated load xmldb for efficiency

* updated references

* removed unneeded file

* updated config flow to use GUID from XML DB

* minor update to change logging

* updated based on PR feedback

* reverted change for line 30 based on testing

* corrected user_input

* updated based on latest comments

* exception handling

* added raising of issues for config flow

* updated issues strings

* config flow test shell - needs work

* minor changes

* Update strings.json

* Update config_flow.py

* Update __init__.py

* Create conftest.py

* Update test_config_flow.py

* Update test_config_flow.py

* Update config_flow.py

* Update strings.json

* Update requirements_test_all.txt

* Update strings.json

* Update strings.json

* Update config_flow.py

* Update test_config_flow.py

* Update config_flow.py

* Create test_init.py

* Update __init__.py

* Delete tests/components/lutron/test_init.py

* Update strings.json

* updated import parts and tested

* updated strings to improve user feedback

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-05 16:39:14 +01:00
Mike Knoop
2092bd225d
Distinguish multiple raise lower buttons on one Lutron keypad (#92380) 2023-06-27 19:52:46 +02:00
Mike Knoop
e8fb7b8cf1
Fix Lutron keypad led state always off at startup (#91149) 2023-04-12 12:59:52 +02:00
Erik Montnemery
1d64ba9d34
Sort manifests 6 (#87027) 2023-02-08 20:38:43 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
cdheiser
2813101418
Add cdheiser to Lutron codeowners (#81922)
* Update manifest.json

Add cdheiser as codeowner

* Update CODEOWNERS

Add @cdheiser as owner of Lutron.
2022-11-10 19:35:47 +01:00
Jon Gilmore
0ce301ae7b
Remove JonGilmore from lutron codeowners (#81727) 2022-11-07 21:22:03 -06:00
epenet
d1ecd74a1a
Improve entity type hints [l] (#77655) 2022-09-01 14:14:31 +02:00
epenet
dff9baf880
Use _attr_should_poll in components [j-n] (#77357) 2022-08-26 21:19:37 +02:00
epenet
7b1463e03d
Improve type hints in light [i-r] (#75943) 2022-07-31 13:53:22 +02:00
uvjustin
3aa75f3fcc
Don't use executor for lutron subscription (#75726) 2022-07-25 22:32:00 +02:00
epenet
e8917af823
Cleanup update/async_update typing in Entities (#74035) 2022-06-28 00:48:56 +02:00
epenet
10dc38e0ec
Adjust CoverEntity property type hints in components (#73943)
* Adjust CoverEntity property type hints in components

* Revert changes to rflink

* Revert changes to wilight
2022-06-25 11:59:56 +02:00
epenet
a92ab7a669
Adjust CoverEntity function type hints in components (#73912)
Adjust CoverEntity functions in components
2022-06-24 06:40:26 +02:00
epenet
5bb850eea3
Use ColorMode enum in lutron (#70518) 2022-04-23 09:21:57 -10:00
Erik Montnemery
5110565488
Migrate lutron light to color_mode (#69422) 2022-04-07 14:50:21 +02:00
epenet
95fb4695e4
Use EntityFeature enum in components (l**) (#69412) 2022-04-06 21:34:58 -10:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
epenet
506a0b526b
Add setup type hints [l] (#63450)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 13:30:37 +01:00
epenet
5140c1fa6a
Remove invalid return values in setup methods [i-p] (#63363)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-04 11:30:13 +01:00
epenet
f39531dcfc
Add switch setup type hints [g-m] (#63303)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:23:11 +01:00
epenet
5ddab5a7f2
Add setup type hints to number, remote and scene (#63299)
* Add number setup type hints

* Add remote setup type hints

* Add scene setup type hints

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 17:17:44 +01:00
epenet
277562bc38
Add light setup type hints [l-r] (#63292)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 15:11:59 +01:00
epenet
33e4251606
Add binary_sensor setup type hints [h-n] (#63269)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 11:32:26 +01:00