Further Python 3 migration

This commit is contained in:
Paulus Schoutsen committed 2014-04-14 23:48:00 -07:00
1 parent 7e06d535ab
commit ef6d862671
11 files changed
+175 -147

No files matched your search

@@ -21,11 +21,12 @@ LIGHT_PROFILE = 'relax'
# pylint: disable=too-many-branches
def setup(bus, statemachine,
light_group=light.GROUP_NAME_ALL_LIGHTS,
light_profile=LIGHT_PROFILE):
def setup(bus, statemachine, light_group=None, light_profile=None):
""" Triggers to turn lights on or off based on device precense. """
light_group = light_group or light.GROUP_NAME_ALL_LIGHTS
light_profile = light_profile or LIGHT_PROFILE
logger = logging.getLogger(__name__)
device_entity_ids = util.filter_entity_ids(statemachine.entity_ids,