Skip to content

Commit

Permalink
Removed unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsverkoyen committed Jan 24, 2023
1 parent ba4dd9b commit 01066c6
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions custom_components/nhc2/nhccoco/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,16 @@

from enum import Enum

MQTT_TLS_VERSION = 2
MQTT_PROTOCOL = mqtt.MQTTv311
MQTT_TRANSPORT = "tcp"
MQTT_TRANSPORT = 'tcp'
MQTT_CERT_FILE = '/coco_ca.pem'

VALUE_DIMMER = 'dimmer'

LIST_VALID_LIGHTS = ['light', VALUE_DIMMER]
LIST_VALID_SWITCHES = ['socket', 'switched-generic']
LIST_VALID_COVERS = ['rolldownshutter', 'sunblind', 'gate', 'venetianblind', 'garagedoor']
LIST_VALID_FANS = ['fan']
LIST_VALID_SWITCHED_FANS = ['switched-fan']
LIST_VALID_THERMOSTATS = ['thermostat']
LIST_VALID_ENERGYMETERS = ['electricity-clamp']
LIST_VALID_ACCESSCONTROL = ['accesscontrol']
LIST_VALID_BUTTONS = ['alloff']
LIST_VALID_SMARTPLUGS = ['naso']
LIST_VALID_GENERICS = ['generic']

DEVICE_CONTROL_BUFFER_SIZE = 16
DEVICE_CONTROL_BUFFER_COMMAND_SIZE = 32

KEY_ACTION = 'Action'
KEY_BRIGHTNESS = 'Brightness'
KEY_DEVICES = 'Devices'
KEY_DISPLAY_NAME = 'DisplayName'
KEY_ENTITY = 'entity'
KEY_FAN_SPEED = 'FanSpeed'
KEY_METHOD = 'Method'
KEY_MODEL = 'Model'
Expand Down Expand Up @@ -64,11 +47,7 @@
ENERGY_REPORT = 'ReportInstantUsage'
ENERGY_POWER = 'ElectricalPower'

DEV_TYPE_ACTION = 'action'

INTERNAL_KEY_CALLBACK = 'callbackHolder'
INTERNAL_KEY_MODELS = 'models'
INTERNAL_KEY_CLASS = 'class'

MQTT_METHOD_SYSINFO_PUBLISH = 'systeminfo.publish'
MQTT_METHOD_SYSINFO_PUBLISHED = 'systeminfo.published'
Expand Down

0 comments on commit 01066c6

Please sign in to comment.