Skip to content
Snippets Groups Projects
Commit 1a46294e authored by Evgeny's avatar Evgeny Committed by Martin Hjelmare
Browse files

Update roomba integration (#28560)

* Updated iRobot integration

* added custom delay for periodic mode

* new version of roombapy
parent eb23846c
Branches
Tags
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"name": "Roomba", "name": "Roomba",
"documentation": "https://www.home-assistant.io/integrations/roomba", "documentation": "https://www.home-assistant.io/integrations/roomba",
"requirements": [ "requirements": [
"roombapy==1.3.1" "roombapy==1.4.1"
], ],
"dependencies": [], "dependencies": [],
"codeowners": [ "codeowners": [
......
...@@ -39,9 +39,11 @@ CAP_CARPET_BOOST = "carpet_boost" ...@@ -39,9 +39,11 @@ CAP_CARPET_BOOST = "carpet_boost"
CONF_CERT = "certificate" CONF_CERT = "certificate"
CONF_CONTINUOUS = "continuous" CONF_CONTINUOUS = "continuous"
CONF_DELAY = "delay"
DEFAULT_CERT = "/etc/ssl/certs/ca-certificates.crt" DEFAULT_CERT = "/etc/ssl/certs/ca-certificates.crt"
DEFAULT_CONTINUOUS = True DEFAULT_CONTINUOUS = True
DEFAULT_DELAY = 1
DEFAULT_NAME = "Roomba" DEFAULT_NAME = "Roomba"
PLATFORM = "roomba" PLATFORM = "roomba"
...@@ -59,6 +61,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( ...@@ -59,6 +61,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
vol.Required(CONF_PASSWORD): cv.string, vol.Required(CONF_PASSWORD): cv.string,
vol.Optional(CONF_CERT, default=DEFAULT_CERT): cv.string, vol.Optional(CONF_CERT, default=DEFAULT_CERT): cv.string,
vol.Optional(CONF_CONTINUOUS, default=DEFAULT_CONTINUOUS): cv.boolean, vol.Optional(CONF_CONTINUOUS, default=DEFAULT_CONTINUOUS): cv.boolean,
vol.Optional(CONF_DELAY, default=DEFAULT_DELAY): cv.positive_int,
}, },
extra=vol.ALLOW_EXTRA, extra=vol.ALLOW_EXTRA,
) )
...@@ -93,6 +96,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= ...@@ -93,6 +96,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
password = config.get(CONF_PASSWORD) password = config.get(CONF_PASSWORD)
certificate = config.get(CONF_CERT) certificate = config.get(CONF_CERT)
continuous = config.get(CONF_CONTINUOUS) continuous = config.get(CONF_CONTINUOUS)
delay = config.get(CONF_DELAY)
roomba = Roomba( roomba = Roomba(
address=host, address=host,
...@@ -100,6 +104,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= ...@@ -100,6 +104,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
password=password, password=password,
cert_name=certificate, cert_name=certificate,
continuous=continuous, continuous=continuous,
delay=delay,
) )
_LOGGER.debug("Initializing communication with host %s", host) _LOGGER.debug("Initializing communication with host %s", host)
......
...@@ -1728,7 +1728,7 @@ rocketchat-API==0.6.1 ...@@ -1728,7 +1728,7 @@ rocketchat-API==0.6.1
roku==3.1 roku==3.1
# homeassistant.components.roomba # homeassistant.components.roomba
roombapy==1.3.1 roombapy==1.4.1
# homeassistant.components.rova # homeassistant.components.rova
rova==0.1.0 rova==0.1.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment