Skip to content

Commit 0b9c7f0

Browse files
authored
Remove unused module-level constants (#396)
1 parent 927dbb9 commit 0b9c7f0

4 files changed

Lines changed: 0 additions & 42 deletions

File tree

custom_components/bhyve/const.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
DOMAIN = "bhyve"
88
MANUFACTURER = "Orbit BHyve"
99

10-
DEVICES = "devices"
11-
PROGRAMS = "programs"
12-
13-
DATA_BHYVE = "bhyve_data"
14-
1510
CONF_CLIENT = "client"
1611
CONF_DEVICES = "devices"
1712

@@ -29,9 +24,3 @@
2924
EVENT_SET_MANUAL_PRESET_TIME = "set_manual_preset_runtime"
3025
EVENT_WATERING_COMPLETE = "watering_complete"
3126
EVENT_WATERING_IN_PROGRESS = "watering_in_progress_notification"
32-
33-
SIGNAL_UPDATE_DEVICE = "bhyve_update_device_{}"
34-
SIGNAL_UPDATE_PROGRAM = "bhyve_update_program_{}"
35-
36-
TYPE_BINARY_SENSOR = "binary_sensor"
37-
TYPE_SENSOR = "sensor"

custom_components/bhyve/diagnostics.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
from .pybhyve.client import BHyveClient
1616

17-
CONF_ALTITUDE = "altitude"
18-
CONF_UUID = "uuid"
19-
2017
TO_REDACT = {
2118
"address",
2219
"full_location",

custom_components/bhyve/switch.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import logging
77
import re
88
from dataclasses import dataclass
9-
from datetime import timedelta
109
from typing import TYPE_CHECKING, Any
1110

1211
import voluptuous as vol
@@ -39,36 +38,12 @@
3938

4039
_LOGGER = logging.getLogger(__name__)
4140

42-
DEFAULT_MANUAL_RUNTIME = timedelta(minutes=5)
43-
44-
PROGRAM_SMART_WATERING = "e"
45-
PROGRAM_MANUAL = "manual"
46-
47-
ATTR_MANUAL_RUNTIME = "manual_preset_runtime"
48-
ATTR_SMART_WATERING_ENABLED = "smart_watering_enabled"
49-
ATTR_SPRINKLER_TYPE = "sprinkler_type"
50-
ATTR_IMAGE_URL = "image_url"
51-
ATTR_STARTED_WATERING_AT = "started_watering_station_at"
52-
ATTR_SMART_WATERING_PLAN = "watering_program"
53-
ATTR_CURRENT_STATION = "current_station"
54-
ATTR_CURRENT_PROGRAM = "current_program"
55-
ATTR_CURRENT_RUNTIME = "current_runtime"
56-
ATTR_NEXT_START_TIME = "next_start_time"
57-
ATTR_NEXT_START_PROGRAMS = "next_start_programs"
58-
59-
# Service Attributes
60-
ATTR_MINUTES = "minutes"
61-
ATTR_HOURS = "hours"
62-
ATTR_PERCENTAGE = "percentage"
63-
6441
# Rain Delay Attributes
6542
ATTR_CAUSE = "cause"
6643
ATTR_DELAY = "delay"
6744
ATTR_WEATHER_TYPE = "weather_type"
6845
ATTR_STARTED_AT = "started_at"
6946

70-
ATTR_PROGRAM = "program_{}"
71-
7247
# Keys accepted by the B-hyve API for program updates
7348
PROGRAM_UPDATE_KEYS = {
7449
"budget",

custom_components/bhyve/valve.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040

4141
DEFAULT_MANUAL_RUNTIME = timedelta(minutes=5)
4242

43-
PROGRAM_SMART_WATERING = "e"
44-
PROGRAM_MANUAL = "manual"
45-
4643
ATTR_MANUAL_RUNTIME = "manual_preset_runtime"
4744
ATTR_SMART_WATERING_ENABLED = "smart_watering_enabled"
4845
ATTR_SPRINKLER_TYPE = "sprinkler_type"

0 commit comments

Comments
 (0)