hass-core/homeassistant/components/demo
Raman Gupta 0f076610fd
Add siren platform (#48309)
* Add siren platform

* add more supported flags and an ability to set siren duration

* tone can be int or string

* fix typing

* fix typehinting

* fix typehints

* implement a proposed approach based on discussion

* Address comments

* fix tests

* Small fix

* Update homeassistant/components/demo/siren.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/demo/siren.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/demo/siren.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/demo/siren.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/demo/siren.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* typing

* use class attributes

* fix naming

* remove device from service description

* Filter out params from turn on service

* fix tests

* fix bugs and tests

* add test

* Combine is_on test with turn on/off/toggle service tests

* Update homeassistant/components/siren/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix filtering of turn_on attributes

* none check

* remove services and attributes for volume level, default duration, and default tone

* Update homeassistant/components/siren/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/siren/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/siren/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* import final

* Update homeassistant/components/siren/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Fix typing and used TypedDict for service parameters

* remove is_on function

* remove class name redundancy

* remove extra service descriptions

* switch to positive_int

* fix schema for tone

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-07-11 16:51:11 -04:00
..
translations [ci skip] Translation update 2021-07-10 00:09:24 +00:00
__init__.py Add siren platform (#48309) 2021-07-11 16:51:11 -04:00
air_quality.py
alarm_control_panel.py Use "arming" state during transition in manual alarm panel (#32950) 2020-04-24 00:07:07 +02:00
binary_sensor.py Use moisture and moving device class in various integrations (#39963) 2020-09-13 16:33:54 +02:00
calendar.py
camera.py Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
climate.py Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
config_flow.py Update pylint to 2.7.3 (#48488) 2021-03-29 18:02:56 -10:00
const.py
cover.py Add DemoCover with only tilt controls (#45228) 2021-01-20 19:11:55 -06:00
demo_0.jpg
demo_1.jpg
demo_2.jpg
demo_3.jpg
device_tracker.py
fan.py Update typing 05 (#48038) 2021-03-17 23:43:55 +01:00
geo_location.py Update typing 05 (#48038) 2021-03-17 23:43:55 +01:00
humidifier.py Define HumidifierEntity entity attributes as class variables (#51841) 2021-06-14 09:04:46 -07:00
image_processing.py
light.py Add support for color_mode white to demo light (#51575) 2021-06-07 20:26:25 +02:00
lock.py Define LockEntity entity attributes as class variables (#51909) 2021-06-17 11:25:33 +02:00
mailbox.py
manifest.json Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
media_player.py Add stop for demo players (#50485) 2021-05-12 10:26:12 +02:00
notify.py
number.py Define NumberEntity entity attributes as class variables (#51842) 2021-06-14 09:05:01 -07:00
remote.py Demo: Explicitly return None when no extra state attribute set (#52390) 2021-07-01 12:43:37 +02:00
select.py Add Select entity component platform (#51849) 2021-06-18 11:51:55 +02:00
sensor.py Demo: remove deprecated switch entity properties (#52424) 2021-07-02 17:50:57 +02:00
services.yaml Add targets and selectors for services (D-E) (#50190) 2021-05-15 09:25:19 +02:00
siren.py Add siren platform (#48309) 2021-07-11 16:51:11 -04:00
strings.json Bump voluptuous-serialize 2.4.0 (#37241) 2020-07-06 20:04:35 -07:00
strings.select.json Add Select entity component platform (#51849) 2021-06-18 11:51:55 +02:00
stt.py Update typing 05 (#48038) 2021-03-17 23:43:55 +01:00
switch.py Demo: remove deprecated switch entity properties (#52424) 2021-07-02 17:50:57 +02:00
tts.mp3
tts.py
vacuum.py Update integrations a-e to override extra_state_attributes() (#47756) 2021-03-11 16:51:03 +01:00
water_heater.py Define WaterHeaterEntity entity attributes as class variables (#51903) 2021-06-17 10:19:29 +02:00
weather.py Use weather attribute conditions constants (#39945) 2020-11-20 21:04:03 +01:00