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
binary_sensor.py
calendar.py
camera.py
climate.py
config_flow.py
const.py
cover.py
demo_0.jpg
demo_1.jpg
demo_2.jpg
demo_3.jpg
device_tracker.py
fan.py
geo_location.py
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
media_player.py
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
strings.select.json Add Select entity component platform (#51849) 2021-06-18 11:51:55 +02:00
stt.py
switch.py Demo: remove deprecated switch entity properties (#52424) 2021-07-02 17:50:57 +02:00
tts.mp3
tts.py
vacuum.py
water_heater.py Define WaterHeaterEntity entity attributes as class variables (#51903) 2021-06-17 10:19:29 +02:00
weather.py