Commit graph

18 commits

Author SHA1 Message Date
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ()
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Erik Montnemery
43c4dec3ed
Explicitly opt-in to device name in the demo integration () 2023-06-19 15:56:48 +02:00
Erik Montnemery
f68ed8b7a0
Always setup demo platforms with device support from config entry ()
* Always setup demo platforms with device support from config entry

* Update tests depending on the demo integration
2023-06-14 21:03:07 +02:00
epenet
02a0b8b649
Add more type hints to demo () 2022-07-04 20:59:52 +02:00
epenet
ea325ef027
Enable basic type checking in demo platforms ()
* Adjust type hints in demo platforms

* Adjust mypy config

* Adjust name
2022-02-10 10:05:58 +01:00
epenet
9b5939a7a5
Add setup type hints to all demo platforms ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 16:24:09 +01:00
Franck Nijhof
542aef2fe1
Migrate switch device classes to StrEnum () 2021-11-30 15:38:45 -08:00
Robert Hillis
fc3e7f5b7e
Use DeviceInfo Class D () 2021-10-22 17:00:00 +02:00
Shay Levy
1eb27f7ccc
Demo: remove deprecated switch entity properties ()
* Demo: deprecate switch entity properties

* Fix emulated_kasa test
2021-07-02 17:50:57 +02:00
Franck Nijhof
37d3a4dd53
Use entity class vars in Switch demo ()
* Use entity class vars in Switch demo

* Fix missing initial state of the demo switch
2021-06-16 08:29:31 +02:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity () 2020-04-26 18:50:37 +02:00
Bram Kragten
4c4e5f3fa9
Fix demos ()
* Fixes for demos

* Update vacuum.py

* Comment

* Fix tests
2020-03-11 08:16:22 -07:00
Bas Nijholt
e4e9cdce73 use isort to sort imports according to PEP8 for demo () 2019-12-08 22:29:27 +05:30
Bram Kragten
15e6278a2e
Add config entry and device support to Demo ()
* Add config entry and device support to Demo

* Some more devices

* Fix tests using demo

* Review comments

* Update config_flow.py

* Revert

* Disable pylint
2019-11-13 16:37:31 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Joakim Plate
1bfccd803f Allow switches to be represented as outlets on google assistant ()
* Add device class support for switch to support outlet type

* Add a test for cover device class sync

* Drop remnant unused import
2019-04-16 17:07:14 -07:00
Tobias Sauerwein
048b100eea Clean up docstrings ()
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests ()
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00
Renamed from homeassistant/components/switch/demo.py (Browse further)