Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from nikrolls/patch-1
Browse files Browse the repository at this point in the history
Update some statuses and error messages with 1st-party translations
  • Loading branch information
walthowd authored Jun 15, 2020
2 parents 2e22709 + d9da332 commit 31f10ab
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions custom_components/automower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
STATUS_OK_CHARGING: { 'icon': 'mdi:power-plug', 'message': 'Charging' },
STATUS_OK_CUTTING: { 'icon': DEFAULT_ICON, 'message': 'Cutting' },
STATUS_OK_CUTTING_MANUAL: { 'icon': DEFAULT_ICON, 'message': 'Cutting (manual timer override)' },
STATUS_OK_LEAVING: { 'icon': DEFAULT_ICON, 'message': 'Leaving base' },
STATUS_OK_LEAVING: { 'icon': DEFAULT_ICON, 'message': 'Leaving charging station' },
STATUS_PAUSED: { 'icon': 'mdi:pause', 'message': 'Paused' },
STATUS_PARKED_TIMER: { 'icon': 'mdi:timetable', 'message': 'Parked due to timer' },
STATUS_PARKED_AUTOTIMER: { 'icon': 'mdi:timetable', 'message': 'Parked due to weather timer' },
STATUS_PARKED_PARKED_SELECTED: { 'icon': 'mdi:sleep', 'message': 'Parked manually' },
STATUS_OK_SEARCHING: { 'icon': 'mdi:magnify', 'message': 'Searching base' },
STATUS_OK_SEARCHING: { 'icon': 'mdi:magnify', 'message': 'Going to charging station' },
STATUS_EXECUTING_START: { 'icon': 'mdi:dots-horizontal','message': 'Starting...' },
STATUS_EXECUTING_STOP: { 'icon': 'mdi:dots-horizontal','message': 'Stopping...' },
STATUS_EXECUTING_PARK: { 'icon': 'mdi:dots-horizontal','message': 'Preparing to park...' },
Expand All @@ -74,16 +74,19 @@
ERROR_MESSAGES = {
1: 'Outside working area',
2: 'No loop signal',
9: 'Trapped',
10: 'Upside down',
13: 'No drive'
12: 'Empty battery',
13: 'No drive',
25: 'Cutting system blocked'
}

# TODO: Add more models as we observe them
MODELS = {
'E': 'Automower 420',
'G': 'Automower 430X',
'H': 'Automower 450X',
'L': 'Automower 315'
'L': 'Automower 315/X'
}

IGNORED_API_STATE_ATTRIBUTES = [
Expand Down

0 comments on commit 31f10ab

Please sign in to comment.