Erik Montnemery
4b2b4ae36b
Add invert option to switch_as_x ( #107535 )
...
* Add invert option to switch_as_x
* Store invert flag in entity options
* Add options flow
* Update strings
* Add tests
* Address review comment
* Update homeassistant/components/switch_as_x/strings.json
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Address review comments
* Inline get_suggested which was only used once in tests
* Address review comments
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-01-24 16:35:08 +01:00
Erik Montnemery
1ae6f1e9e2
Add valve support to switch_as_x ( #105988 )
2023-12-19 20:16:18 +01:00
Erik Montnemery
fb1bb0d374
Adjust switch_as_x tests which create devices ( #98210 )
2023-08-10 18:24:39 +02:00
Erik Montnemery
4860a8d1e8
Don't use storage collection helper in ExposedEntities ( #92396 )
...
* Don't use storage collection helper in ExposedEntities
* Fix tests
2023-05-03 12:39:22 +02:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02:00
Erik Montnemery
330a7afdfc
Teach switch_as_x about exposed entities ( #92059 )
2023-04-26 18:42:49 +02:00
Erik Montnemery
eb63bc7967
Fix switch_as_x name ( #91232 )
2023-04-11 13:54:30 -04:00
Erik Montnemery
5948347b6b
Fix switch_as_x entity naming ( #89992 )
...
* Fix switch_as_x entity naming
* Simplify name logic
2023-03-22 20:24:05 +01:00
Erik Montnemery
39f5f0946e
Store source entity in switch_as_x entity options ( #88914 )
2023-02-28 21:15:44 -05:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
fe5e3320d4
Adjust switch as X to inherit entity category ( #79081 )
2022-09-26 10:22:45 +02:00
Erik Montnemery
60c8d95a77
Remove white_value support from light ( #76926 )
2022-08-18 08:21:05 -04:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
Erik Montnemery
4435c641de
Enforce RegistryEntryHider in entity registry ( #73219 )
2022-06-08 12:36:43 -07:00
epenet
7d2363ad22
Use light enums in tests ( #70801 )
2022-04-26 16:32:00 +02:00
Erik Montnemery
f026245cb4
Small tweaks of switch_as_x tests ( #68195 )
2022-03-15 18:34:46 +01:00
Erik Montnemery
314175135f
Hide switch_as_x tracked entity ( #67949 )
...
* Hide switch_as_x tracked entity
* Hide wrapped switch during config flow
* Allow setting/getting entity disabled by via WS
* Adjust tests
* Improve test coverage
* Improve tests
2022-03-14 19:39:07 +01:00
Franck Nijhof
ed6466f706
Add Lock platform to Switch as X ( #68123 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-14 10:45:45 -07:00
Franck Nijhof
344537d0a8
Add Fan platform to Switch as X ( #68122 )
2022-03-14 15:07:21 +01:00
Franck Nijhof
ed6c86a281
Add siren platform to Switch as X ( #68118 )
...
* Add siren platform to Switch as X
* Clarify inline test documentation
* Clarify inline test documentation
2022-03-14 13:55:06 +01:00
Franck Nijhof
c70c699af0
Add cover platform to Switch as X ( #68107 )
2022-03-14 11:59:55 +01:00
Franck Nijhof
25f2e4bd99
Small improvements for Switch as X ( #68079 )
...
* Small improvements forr Switch as X
* Test improvements
* Remove intregration tests from config flow test
2022-03-13 19:34:02 +01:00
Erik Montnemery
8948bada58
Add switch_as_x entity to wrapped switch's device ( #67961 )
2022-03-11 09:46:32 +01:00
Erik Montnemery
e43c8b513e
Listen to entity registry events for wrapped switch in switch_as_x ( #67962 )
...
* Listen to entity registry events for wrapped switch in switch_as_x
* Simplify test
2022-03-10 21:26:35 +01:00
Erik Montnemery
3d212b868e
Address review comments on switch_as_x tests ( #67951 )
...
* Address review comments on switch_as_x tests
* Correct test
* Move test instead of duplicating it
2022-03-10 17:23:16 +01:00
Erik Montnemery
ee38dbd698
Add helper to set name of helper config entries ( #67950 )
2022-03-10 16:18:26 +01:00
Erik Montnemery
cb7e492e81
Add switch_as_x integration ( #67878 )
...
* Add switch_as_x integration
* Address review comments
* Add translation strings
* Rename entity_type option to target_domain
* Move LightSwitch class definition to switch_as_x/light.py
* Update manifest
* Move tests
2022-03-10 12:23:01 +01:00