remove what i think are some unneeded changes
This commit is contained in:
@@ -108,11 +108,11 @@ CHARGE_MODE_TO_ECOVACS = {
|
||||
|
||||
CHARGE_MODE_FROM_ECOVACS = {
|
||||
'going': CHARGE_MODE_RETURNING,
|
||||
'Going': CHARGE_MODE_RETURNING,
|
||||
# 'Going': CHARGE_MODE_RETURNING,
|
||||
'slot_charging': CHARGE_MODE_CHARGING,
|
||||
'SlotCharging': CHARGE_MODE_CHARGING,
|
||||
# 'SlotCharging': CHARGE_MODE_CHARGING,
|
||||
'idle': CHARGE_MODE_IDLE,
|
||||
'Idle': CHARGE_MODE_IDLE,
|
||||
# 'Idle': CHARGE_MODE_IDLE,
|
||||
}
|
||||
|
||||
COMPONENT_TO_ECOVACS = {
|
||||
@@ -123,11 +123,11 @@ COMPONENT_TO_ECOVACS = {
|
||||
|
||||
COMPONENT_FROM_ECOVACS = {
|
||||
'brush': COMPONENT_MAIN_BRUSH,
|
||||
'Brush': COMPONENT_MAIN_BRUSH,
|
||||
# 'Brush': COMPONENT_MAIN_BRUSH,
|
||||
'side_brush': COMPONENT_SIDE_BRUSH,
|
||||
'SideBrush': COMPONENT_SIDE_BRUSH,
|
||||
# 'SideBrush': COMPONENT_SIDE_BRUSH,
|
||||
'dust_case_heap': COMPONENT_FILTER,
|
||||
'DustCaseHeap': COMPONENT_FILTER,
|
||||
# 'DustCaseHeap': COMPONENT_FILTER,
|
||||
}
|
||||
|
||||
def str_to_bool_or_cert(s):
|
||||
@@ -434,8 +434,13 @@ class VacBot():
|
||||
self.xmpp.subscribe_to_ctls(self._handle_ctl)
|
||||
|
||||
else:
|
||||
self.iotmq = EcoVacsIOTMQ(user, domain, resource, secret, continent, vacuum, server_address, verify_ssl=verify_ssl)
|
||||
self.iotmq.subscribe_to_ctls(self._handle_ctl)
|
||||
if self.server_address is not None:
|
||||
vacuum = {"did": "none", "class": "none"}
|
||||
self.iotmq = EcoVacsIOTMQ("sucks", "ecouser.net", "", "", "", vacuum, server_address, verify_ssl=verify_ssl)
|
||||
self.iotmq.subscribe_to_ctls(self._handle_ctl)
|
||||
else:
|
||||
self.iotmq = EcoVacsIOTMQ(user, domain, resource, secret, continent, vacuum, server_address, verify_ssl=verify_ssl)
|
||||
self.iotmq.subscribe_to_ctls(self._handle_ctl)
|
||||
#The app still connects to XMPP as well, but only issues ping commands.
|
||||
#Everything works without XMPP, so leaving the below commented out.
|
||||
#self.xmpp = EcoVacsXMPP(user, domain, resource, secret, continent, vacuum, server_address)
|
||||
|
||||
Reference in New Issue
Block a user