Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Mitemp_bt constants #46881

Merged
merged 3 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions homeassistant/components/acer_projector/switch.py
Expand Up @@ -9,6 +9,7 @@
from homeassistant.const import (
CONF_FILENAME,
CONF_NAME,
CONF_TIMEOUT,
STATE_OFF,
STATE_ON,
STATE_UNKNOWN,
Expand All @@ -17,7 +18,6 @@

_LOGGER = logging.getLogger(__name__)

CONF_TIMEOUT = "timeout"
CONF_WRITE_TIMEOUT = "write_timeout"

DEFAULT_NAME = "Acer Projector"
Expand Down Expand Up @@ -74,7 +74,6 @@ class AcerSwitch(SwitchEntity):

def __init__(self, serial_port, name, timeout, write_timeout, **kwargs):
"""Init of the Acer projector."""

self.ser = serial.Serial(
port=serial_port, timeout=timeout, write_timeout=write_timeout, **kwargs
)
Expand All @@ -90,7 +89,6 @@ def __init__(self, serial_port, name, timeout, write_timeout, **kwargs):

def _write_read(self, msg):
"""Write to the projector and read the return."""

ret = ""
# Sometimes the projector won't answer for no reason or the projector
# was disconnected during runtime.
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/mitemp_bt/sensor.py
Expand Up @@ -12,6 +12,7 @@
CONF_MAC,
CONF_MONITORED_CONDITIONS,
CONF_NAME,
CONF_TIMEOUT,
DEVICE_CLASS_BATTERY,
DEVICE_CLASS_HUMIDITY,
DEVICE_CLASS_TEMPERATURE,
Expand All @@ -34,7 +35,6 @@
CONF_CACHE = "cache_value"
CONF_MEDIAN = "median"
CONF_RETRIES = "retries"
CONF_TIMEOUT = "timeout"

DEFAULT_ADAPTER = "hci0"
DEFAULT_UPDATE_INTERVAL = 300
Expand Down