try subscribe to ctl
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"domain": "ecovacs",
|
"domain": "ecovacs",
|
||||||
"name": "Ecovacs Bumper",
|
"name": "Ecovacs Bumper",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/ecovacs",
|
"documentation": "https://www.home-assistant.io/integrations/ecovacs",
|
||||||
"requirements": ["sleekxmppfs==1.4.1", "click>=6", "requests>=2.18", "pycryptodome>=3.4", "pycountry-convert>=0.5", "paho-mqtt>=1.4", "stringcase>=1.2"],
|
"requirements": ["sleekxmppfs==1.4.1", "click>=6", "requests>=2.18", "pycryptodome>=3.4", "pycountry-convert>=0.5", "paho-mqtt>=1.4", "stringcase>=1.2"],
|
||||||
"codeowners": ["@OverloadUT", "@mib1185"],
|
"codeowners": ["@OverloadUT", "@mib1185"],
|
||||||
|
|||||||
@@ -424,6 +424,8 @@ class VacBot():
|
|||||||
if self.server_address is not None:
|
if self.server_address is not None:
|
||||||
vacuum = {"did": "none", "class": "none"}
|
vacuum = {"did": "none", "class": "none"}
|
||||||
super().__init__("sucks", "ecouser.net", "", "", vacuum, "")
|
super().__init__("sucks", "ecouser.net", "", "", vacuum, "")
|
||||||
|
self.xmpp = EcoVacsXMPP("sucks", "ecouser.net", "", "", "", vacuum, server_address)
|
||||||
|
self.xmpp.subscribe_to_ctls(self._handle_ctl)
|
||||||
# should work with ecovacs servers but 1) havent tested with my changes and 2) havent tested with bmartins changes
|
# should work with ecovacs servers but 1) havent tested with my changes and 2) havent tested with bmartins changes
|
||||||
else:
|
else:
|
||||||
self.xmpp = EcoVacsXMPP(user, domain, resource, secret, continent, vacuum, server_address)
|
self.xmpp = EcoVacsXMPP(user, domain, resource, secret, continent, vacuum, server_address)
|
||||||
|
|||||||
Reference in New Issue
Block a user