Skip to content

Commit

Permalink
switchCrownstone event has been removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
vliedel committed Oct 27, 2020
1 parent 29edb19 commit a5957f6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
5 changes: 1 addition & 4 deletions crownstone_sse/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,7 @@ def fire_events(self, data) -> None:
self.event_bus.fire(system_event, event)

if data[TYPE] == EVENT_COMMAND:
if data[SUBTYPE] == crownstone_sse.const.EVENT_COMMAND_SWITCH_CROWNSTONE:
event = SwitchCommandEvent(data)
self.event_bus.fire(data[SUBTYPE], event)
elif data[SUBTYPE] == crownstone_sse.const.EVENT_COMMAND_SWITCH_MULTIPLE_CROWNSTONES:
if data[SUBTYPE] == crownstone_sse.const.EVENT_COMMAND_SWITCH_MULTIPLE_CROWNSTONES:
event = MultiSwitchCommandEvent(data)
self.event_bus.fire(data[SUBTYPE], event)

Expand Down
2 changes: 0 additions & 2 deletions crownstone_sse/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

# SSE command events
EVENT_COMMAND = "command"
EVENT_COMMAND_SWITCH_CROWNSTONE = "switchCrownstone" # Deprecated
EVENT_COMMAND_SWITCH_MULTIPLE_CROWNSTONES = "multiSwitch"

# SSE presence events
Expand Down Expand Up @@ -102,7 +101,6 @@
]

command_events = [
EVENT_COMMAND_SWITCH_CROWNSTONE,
EVENT_COMMAND_SWITCH_MULTIPLE_CROWNSTONES
]

Expand Down
37 changes: 0 additions & 37 deletions crownstone_sse/events/SwitchCommandEvent.py

This file was deleted.

0 comments on commit a5957f6

Please sign in to comment.