Removed od ATTR
This commit is contained in:
parent
d10af9824a
commit
4aa49b9300
11
const.py
11
const.py
@ -155,17 +155,6 @@ ALERTS = {
|
|||||||
"log_upload_failed": "Logs failed to upload",
|
"log_upload_failed": "Logs failed to upload",
|
||||||
}
|
}
|
||||||
|
|
||||||
ATTR_CLEAN_START = "clean_start"
|
|
||||||
ATTR_CLEAN_STOP = "clean_stop"
|
|
||||||
ATTR_CLEAN_AREA = "clean_area"
|
|
||||||
ATTR_CLEAN_BATTERY_START = "battery_level_at_clean_start"
|
|
||||||
ATTR_CLEAN_BATTERY_END = "battery_level_at_clean_end"
|
|
||||||
ATTR_CLEAN_SUSP_COUNT = "clean_suspension_count"
|
|
||||||
ATTR_CLEAN_SUSP_TIME = "clean_suspension_time"
|
|
||||||
ATTR_CLEAN_PAUSE_TIME = "clean_pause_time"
|
|
||||||
ATTR_CLEAN_ERROR_TIME = "clean_error_time"
|
|
||||||
ATTR_LAUNCHED_FROM = "launched_from"
|
|
||||||
|
|
||||||
ATTR_NAVIGATION = "navigation"
|
ATTR_NAVIGATION = "navigation"
|
||||||
ATTR_CATEGORY = "category"
|
ATTR_CATEGORY = "category"
|
||||||
ATTR_ZONE = "zone"
|
ATTR_ZONE = "zone"
|
||||||
|
44
vacuum.py
44
vacuum.py
@ -32,16 +32,6 @@ from homeassistant.helpers.update_coordinator import (
|
|||||||
from .api import VorwerkState
|
from .api import VorwerkState
|
||||||
from .const import (
|
from .const import (
|
||||||
ATTR_CATEGORY,
|
ATTR_CATEGORY,
|
||||||
ATTR_CLEAN_AREA,
|
|
||||||
ATTR_CLEAN_BATTERY_END,
|
|
||||||
ATTR_CLEAN_BATTERY_START,
|
|
||||||
ATTR_CLEAN_ERROR_TIME,
|
|
||||||
ATTR_CLEAN_PAUSE_TIME,
|
|
||||||
ATTR_CLEAN_START,
|
|
||||||
ATTR_CLEAN_STOP,
|
|
||||||
ATTR_CLEAN_SUSP_COUNT,
|
|
||||||
ATTR_CLEAN_SUSP_TIME,
|
|
||||||
ATTR_LAUNCHED_FROM,
|
|
||||||
ATTR_NAVIGATION,
|
ATTR_NAVIGATION,
|
||||||
ATTR_ZONE,
|
ATTR_ZONE,
|
||||||
VORWERK_DOMAIN,
|
VORWERK_DOMAIN,
|
||||||
@ -107,20 +97,6 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
|
|||||||
|
|
||||||
self._name = f"{self.robot.name}"
|
self._name = f"{self.robot.name}"
|
||||||
self._robot_serial = self.robot.serial
|
self._robot_serial = self.robot.serial
|
||||||
|
|
||||||
# Variables form neato impl
|
|
||||||
# We keep it here for later implementations
|
|
||||||
self._clean_state = None
|
|
||||||
self._clean_time_start = None
|
|
||||||
self._clean_time_stop = None
|
|
||||||
self._clean_area = None
|
|
||||||
self._clean_battery_start = None
|
|
||||||
self._clean_battery_end = None
|
|
||||||
self._clean_susp_charge_count = None
|
|
||||||
self._clean_susp_time = None
|
|
||||||
self._clean_pause_time = None
|
|
||||||
self._clean_error_time = None
|
|
||||||
self._launched_from = None
|
|
||||||
self._robot_boundaries = []
|
self._robot_boundaries = []
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -165,26 +141,6 @@ class VorwerkConnectedVacuum(CoordinatorEntity, StateVacuumEntity):
|
|||||||
|
|
||||||
if self._state.status is not None:
|
if self._state.status is not None:
|
||||||
data[ATTR_STATUS] = self._state.status
|
data[ATTR_STATUS] = self._state.status
|
||||||
if self._clean_time_start is not None:
|
|
||||||
data[ATTR_CLEAN_START] = self._clean_time_start
|
|
||||||
if self._clean_time_stop is not None:
|
|
||||||
data[ATTR_CLEAN_STOP] = self._clean_time_stop
|
|
||||||
if self._clean_area is not None:
|
|
||||||
data[ATTR_CLEAN_AREA] = self._clean_area
|
|
||||||
if self._clean_susp_charge_count is not None:
|
|
||||||
data[ATTR_CLEAN_SUSP_COUNT] = self._clean_susp_charge_count
|
|
||||||
if self._clean_susp_time is not None:
|
|
||||||
data[ATTR_CLEAN_SUSP_TIME] = self._clean_susp_time
|
|
||||||
if self._clean_pause_time is not None:
|
|
||||||
data[ATTR_CLEAN_PAUSE_TIME] = self._clean_pause_time
|
|
||||||
if self._clean_error_time is not None:
|
|
||||||
data[ATTR_CLEAN_ERROR_TIME] = self._clean_error_time
|
|
||||||
if self._clean_battery_start is not None:
|
|
||||||
data[ATTR_CLEAN_BATTERY_START] = self._clean_battery_start
|
|
||||||
if self._clean_battery_end is not None:
|
|
||||||
data[ATTR_CLEAN_BATTERY_END] = self._clean_battery_end
|
|
||||||
if self._launched_from is not None:
|
|
||||||
data[ATTR_LAUNCHED_FROM] = self._launched_from
|
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user