actions/TurnOffAdjacentZones

class aaa_modules.layout_model.actions.turn_off_adjacent_zones.TurnOffAdjacentZones[source]

Turn off the lights in the zones adjacent to the current zone if those zones are of the OPEN_SPACE and OPEN_SPACE_SLAVE type.

onAction(events, zone, getZoneByIdFn)[source]

Subclass must override this method with its own handling.

Parameters:
  • events (scope.events) –
  • zone (Zone) – the zone where the action takes place
  • getZoneByIdFn (lambda) – a function that returns a Zone object given a zone id string
Returns:

True if the event is processed; False otherwise.