mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 02:58:23 +00:00
Fix options for error sensor in Husqvarna Automower (#149901)
This commit is contained in:
parent
4318e29ce8
commit
627785edc1
@ -71,10 +71,10 @@ ERROR_KEYS = [
|
||||
"cutting_drive_motor_2_defect",
|
||||
"cutting_drive_motor_3_defect",
|
||||
"cutting_height_blocked",
|
||||
"cutting_height_problem",
|
||||
"cutting_height_problem_curr",
|
||||
"cutting_height_problem_dir",
|
||||
"cutting_height_problem_drive",
|
||||
"cutting_height_problem",
|
||||
"cutting_motor_problem",
|
||||
"cutting_stopped_slope_too_steep",
|
||||
"cutting_system_blocked",
|
||||
@ -117,7 +117,6 @@ ERROR_KEYS = [
|
||||
"no_accurate_position_from_satellites",
|
||||
"no_confirmed_position",
|
||||
"no_drive",
|
||||
"no_error",
|
||||
"no_loop_signal",
|
||||
"no_power_in_charging_station",
|
||||
"no_response_from_charger",
|
||||
@ -169,8 +168,8 @@ ERROR_KEYS = [
|
||||
]
|
||||
|
||||
|
||||
ERROR_KEY_LIST = list(
|
||||
dict.fromkeys(ERROR_KEYS + [state.lower() for state in ERROR_STATES])
|
||||
ERROR_KEY_LIST = sorted(
|
||||
set(ERROR_KEYS) | {state.lower() for state in ERROR_STATES} | {"no_error"}
|
||||
)
|
||||
|
||||
INACTIVE_REASONS: list = [
|
||||
|
@ -205,10 +205,10 @@
|
||||
'cutting_drive_motor_2_defect',
|
||||
'cutting_drive_motor_3_defect',
|
||||
'cutting_height_blocked',
|
||||
'cutting_height_problem',
|
||||
'cutting_height_problem_curr',
|
||||
'cutting_height_problem_dir',
|
||||
'cutting_height_problem_drive',
|
||||
'cutting_height_problem',
|
||||
'cutting_motor_problem',
|
||||
'cutting_stopped_slope_too_steep',
|
||||
'cutting_system_blocked',
|
||||
@ -219,6 +219,9 @@
|
||||
'docking_sensor_defect',
|
||||
'electronic_problem',
|
||||
'empty_battery',
|
||||
'error',
|
||||
'error_at_power_up',
|
||||
'fatal_error',
|
||||
'folding_cutting_deck_sensor_defect',
|
||||
'folding_sensor_activated',
|
||||
'geofence_problem',
|
||||
@ -255,6 +258,7 @@
|
||||
'no_loop_signal',
|
||||
'no_power_in_charging_station',
|
||||
'no_response_from_charger',
|
||||
'off',
|
||||
'outside_working_area',
|
||||
'poor_signal_quality',
|
||||
'reference_station_communication_problem',
|
||||
@ -268,6 +272,7 @@
|
||||
'slope_too_steep',
|
||||
'sms_could_not_be_sent',
|
||||
'stop_button_problem',
|
||||
'stopped',
|
||||
'stuck_in_charging_station',
|
||||
'switch_cord_problem',
|
||||
'temporary_battery_problem',
|
||||
@ -283,6 +288,8 @@
|
||||
'unexpected_cutting_height_adj',
|
||||
'unexpected_error',
|
||||
'upside_down',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
'weak_gps_signal',
|
||||
'wheel_drive_problem_left',
|
||||
'wheel_drive_problem_rear_left',
|
||||
@ -300,13 +307,6 @@
|
||||
'wrong_loop_signal',
|
||||
'wrong_pin_code',
|
||||
'zone_generator_problem',
|
||||
'error_at_power_up',
|
||||
'error',
|
||||
'fatal_error',
|
||||
'off',
|
||||
'stopped',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@ -372,10 +372,10 @@
|
||||
'cutting_drive_motor_2_defect',
|
||||
'cutting_drive_motor_3_defect',
|
||||
'cutting_height_blocked',
|
||||
'cutting_height_problem',
|
||||
'cutting_height_problem_curr',
|
||||
'cutting_height_problem_dir',
|
||||
'cutting_height_problem_drive',
|
||||
'cutting_height_problem',
|
||||
'cutting_motor_problem',
|
||||
'cutting_stopped_slope_too_steep',
|
||||
'cutting_system_blocked',
|
||||
@ -386,6 +386,9 @@
|
||||
'docking_sensor_defect',
|
||||
'electronic_problem',
|
||||
'empty_battery',
|
||||
'error',
|
||||
'error_at_power_up',
|
||||
'fatal_error',
|
||||
'folding_cutting_deck_sensor_defect',
|
||||
'folding_sensor_activated',
|
||||
'geofence_problem',
|
||||
@ -422,6 +425,7 @@
|
||||
'no_loop_signal',
|
||||
'no_power_in_charging_station',
|
||||
'no_response_from_charger',
|
||||
'off',
|
||||
'outside_working_area',
|
||||
'poor_signal_quality',
|
||||
'reference_station_communication_problem',
|
||||
@ -435,6 +439,7 @@
|
||||
'slope_too_steep',
|
||||
'sms_could_not_be_sent',
|
||||
'stop_button_problem',
|
||||
'stopped',
|
||||
'stuck_in_charging_station',
|
||||
'switch_cord_problem',
|
||||
'temporary_battery_problem',
|
||||
@ -450,6 +455,8 @@
|
||||
'unexpected_cutting_height_adj',
|
||||
'unexpected_error',
|
||||
'upside_down',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
'weak_gps_signal',
|
||||
'wheel_drive_problem_left',
|
||||
'wheel_drive_problem_rear_left',
|
||||
@ -467,13 +474,6 @@
|
||||
'wrong_loop_signal',
|
||||
'wrong_pin_code',
|
||||
'zone_generator_problem',
|
||||
'error_at_power_up',
|
||||
'error',
|
||||
'fatal_error',
|
||||
'off',
|
||||
'stopped',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@ -1568,10 +1568,10 @@
|
||||
'cutting_drive_motor_2_defect',
|
||||
'cutting_drive_motor_3_defect',
|
||||
'cutting_height_blocked',
|
||||
'cutting_height_problem',
|
||||
'cutting_height_problem_curr',
|
||||
'cutting_height_problem_dir',
|
||||
'cutting_height_problem_drive',
|
||||
'cutting_height_problem',
|
||||
'cutting_motor_problem',
|
||||
'cutting_stopped_slope_too_steep',
|
||||
'cutting_system_blocked',
|
||||
@ -1582,6 +1582,9 @@
|
||||
'docking_sensor_defect',
|
||||
'electronic_problem',
|
||||
'empty_battery',
|
||||
'error',
|
||||
'error_at_power_up',
|
||||
'fatal_error',
|
||||
'folding_cutting_deck_sensor_defect',
|
||||
'folding_sensor_activated',
|
||||
'geofence_problem',
|
||||
@ -1618,6 +1621,7 @@
|
||||
'no_loop_signal',
|
||||
'no_power_in_charging_station',
|
||||
'no_response_from_charger',
|
||||
'off',
|
||||
'outside_working_area',
|
||||
'poor_signal_quality',
|
||||
'reference_station_communication_problem',
|
||||
@ -1631,6 +1635,7 @@
|
||||
'slope_too_steep',
|
||||
'sms_could_not_be_sent',
|
||||
'stop_button_problem',
|
||||
'stopped',
|
||||
'stuck_in_charging_station',
|
||||
'switch_cord_problem',
|
||||
'temporary_battery_problem',
|
||||
@ -1646,6 +1651,8 @@
|
||||
'unexpected_cutting_height_adj',
|
||||
'unexpected_error',
|
||||
'upside_down',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
'weak_gps_signal',
|
||||
'wheel_drive_problem_left',
|
||||
'wheel_drive_problem_rear_left',
|
||||
@ -1663,13 +1670,6 @@
|
||||
'wrong_loop_signal',
|
||||
'wrong_pin_code',
|
||||
'zone_generator_problem',
|
||||
'error_at_power_up',
|
||||
'error',
|
||||
'fatal_error',
|
||||
'off',
|
||||
'stopped',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@ -1735,10 +1735,10 @@
|
||||
'cutting_drive_motor_2_defect',
|
||||
'cutting_drive_motor_3_defect',
|
||||
'cutting_height_blocked',
|
||||
'cutting_height_problem',
|
||||
'cutting_height_problem_curr',
|
||||
'cutting_height_problem_dir',
|
||||
'cutting_height_problem_drive',
|
||||
'cutting_height_problem',
|
||||
'cutting_motor_problem',
|
||||
'cutting_stopped_slope_too_steep',
|
||||
'cutting_system_blocked',
|
||||
@ -1749,6 +1749,9 @@
|
||||
'docking_sensor_defect',
|
||||
'electronic_problem',
|
||||
'empty_battery',
|
||||
'error',
|
||||
'error_at_power_up',
|
||||
'fatal_error',
|
||||
'folding_cutting_deck_sensor_defect',
|
||||
'folding_sensor_activated',
|
||||
'geofence_problem',
|
||||
@ -1785,6 +1788,7 @@
|
||||
'no_loop_signal',
|
||||
'no_power_in_charging_station',
|
||||
'no_response_from_charger',
|
||||
'off',
|
||||
'outside_working_area',
|
||||
'poor_signal_quality',
|
||||
'reference_station_communication_problem',
|
||||
@ -1798,6 +1802,7 @@
|
||||
'slope_too_steep',
|
||||
'sms_could_not_be_sent',
|
||||
'stop_button_problem',
|
||||
'stopped',
|
||||
'stuck_in_charging_station',
|
||||
'switch_cord_problem',
|
||||
'temporary_battery_problem',
|
||||
@ -1813,6 +1818,8 @@
|
||||
'unexpected_cutting_height_adj',
|
||||
'unexpected_error',
|
||||
'upside_down',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
'weak_gps_signal',
|
||||
'wheel_drive_problem_left',
|
||||
'wheel_drive_problem_rear_left',
|
||||
@ -1830,13 +1837,6 @@
|
||||
'wrong_loop_signal',
|
||||
'wrong_pin_code',
|
||||
'zone_generator_problem',
|
||||
'error_at_power_up',
|
||||
'error',
|
||||
'fatal_error',
|
||||
'off',
|
||||
'stopped',
|
||||
'wait_power_up',
|
||||
'wait_updating',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user