Rename input_slider to input_number and add numeric text box option (#9494)

* * Rename input_slider to input_number
* Update input_number to optionally display slider, input box, or both

* input_number support either input box or slider mode, but not both

* input_number : change service from select_value to set_value

* input_number : add test for mode setting to tests
This commit is contained in:
BioSehnsucht 2017-10-03 14:34:13 -05:00 committed by Pascal Vizeli
parent 29e973d060
commit 3c0d02f057
6 changed files with 101 additions and 58 deletions

View file

@ -745,11 +745,11 @@ is_state_attr('device_tracker.phone_2', 'battery', 40)
self.assertListEqual(
sorted([
'sensor.luftfeuchtigkeit_mean',
'input_slider.luftfeuchtigkeit',
'input_number.luftfeuchtigkeit',
]),
sorted(template.extract_entities(
"{% if (states('sensor.luftfeuchtigkeit_mean') | int)"
" > (states('input_slider.luftfeuchtigkeit') | int +1.5)"
" > (states('input_number.luftfeuchtigkeit') | int +1.5)"
" %}true{% endif %}"
)))