Set flux default stop time to dusk (#12062)

This is more in line with how one would expect light temperature
transitions to take place, but still allows for a user defined
stop_time.
This commit is contained in:
Gerben Meijer authored and Fabian Affolter committed 2018-01-31 12:00:47 +01:00
1 parent 434d2afbfc
commit 6ae3fa40cf
2 files changed
+18 -7

No files matched your search

+6 -3
View File
@@ -238,7 +238,8 @@ class TestSwitchFlux(unittest.TestCase):
switch.DOMAIN: {
'platform': 'flux',
'name': 'flux',
'lights': [dev1.entity_id]
'lights': [dev1.entity_id],
'stop_time': '22:00'
}
})
turn_on_calls = mock_service(
@@ -638,7 +639,8 @@ class TestSwitchFlux(unittest.TestCase):
'name': 'flux',
'lights': [dev1.entity_id],
'start_colortemp': '1000',
'stop_colortemp': '6000'
'stop_colortemp': '6000',
'stop_time': '22:00'
}
})
turn_on_calls = mock_service(
@@ -686,7 +688,8 @@ class TestSwitchFlux(unittest.TestCase):
'platform': 'flux',
'name': 'flux',
'lights': [dev1.entity_id],
'brightness': 255
'brightness': 255,
'stop_time': '22:00'
}
})
turn_on_calls = mock_service(