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
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] ( #112700 )
2024-03-08 09:01:29 -05:00
Joost Lekkerkerker
47b7dd4a01
Set Lutron switch to device name ( #111293 )
2024-02-24 20:18:06 +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
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
e8fb7b8cf1
Fix Lutron keypad led state always off at startup ( #91149 )
2023-04-12 12:59:52 +02:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
epenet
d1ecd74a1a
Improve entity type hints [l] ( #77655 )
2022-09-01 14:14:31 +02: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
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() ( #47758 )
2021-03-11 20:11:25 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) ( #41600 )
2020-10-12 16:59:05 +02:00
springstan
038c05d0ee
Return attribute dict directly without temporary variable ( #41206 )
2020-10-05 12:51:48 +02:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity ( #34673 )
2020-04-26 18:50:37 +02:00
Alistair Galbraith
d144228272
Add support for Lutron Keypad LEDs ( #30452 )
...
* Add support for Lutron Keypad LEDs
* Removed unneeded attribute definitions
* Pull initial state from Lutron on startup
* Format updates per code review
* Altered caching code to only fetch state if needed
* Update homeassistant/components/lutron/switch.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Cloud pylint is also offended by this ;)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-20 15:44:55 +02:00
Dima Zavin
6bf35232b9
Don't force a query to the main lutron repeater on update ( #25939 )
...
We only want to force a query if we don't have any previous state.
Otherwise, we should be tracking the state via continuous status
updates.
For lights (not switches) the extra query was also superfluous since
it was already querying on startup.
We should probably have a timeout on that so at some point we'll
requery in case remote end disconnected/rebooted, etc. Leaving for
another PR.
2019-08-17 23:50:15 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Jon Gilmore
1e8a4dd0bc
Fix status of lutron switches/lights after HA reboot ( #25592 )
2019-07-31 05:48:43 +02:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Fabian Affolter
161c368c9d
Update file header ( #21054 )
...
* Update file header
* Update __init__.py
2019-02-13 20:35:12 -08:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00