Skip to content

Commit 9980265

Browse files
committed
Remove all plugwise-beta related comments
1 parent b7792a8 commit 9980265

File tree

5 files changed

+23
-28
lines changed

5 files changed

+23
-28
lines changed

custom_components/plugwise_usb/binary_sensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from homeassistant.core import HomeAssistant
88
from homeassistant.helpers import entity_platform
99
from homeassistant.helpers.entity_platform import AddEntitiesCallback
10-
from plugwise_usb.nodes import PlugwiseNode # pw-beta usb
10+
from plugwise_usb.nodes import PlugwiseNode
1111

12-
from . import PlugwiseUSBEntity # pw-beta
13-
from .const import ( # pw-beta usb
12+
from . import PlugwiseUSBEntity
13+
from .const import (
1414
ATTR_SCAN_DAYLIGHT_MODE,
1515
ATTR_SCAN_RESET_TIMER,
1616
ATTR_SCAN_SENSITIVITY_MODE,

custom_components/plugwise_usb/config_flow.py

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,35 @@
33

44
from typing import Any
55

6-
import serial.tools.list_ports # pw-beta usb
6+
import serial.tools.list_ports
77
import voluptuous as vol
88

9-
from homeassistant.components import usb # pw-beta usb
9+
from homeassistant.components import usb
1010
from homeassistant.config_entries import ConfigFlow
1111
from homeassistant.const import CONF_BASE
1212
from homeassistant.core import callback
1313
from homeassistant.data_entry_flow import FlowResult
14-
from plugwise_usb import Stick # pw-beta usb
14+
from plugwise_usb import Stick
15+
from plugwise_usb.exceptions import (
16+
NetworkDown,
17+
PortError,
18+
StickInitError,
19+
TimeoutException,
20+
)
1521

16-
# pw-beta Note; the below are explicit through isort
17-
from plugwise_usb.exceptions import NetworkDown # pw-beta usb
18-
from plugwise_usb.exceptions import PortError # pw-beta usb
19-
from plugwise_usb.exceptions import StickInitError # pw-beta usb
20-
from plugwise_usb.exceptions import TimeoutException # pw-beta usb
21-
22-
# pw-beta Note; the below are explicit through isort
23-
from .const import CONF_MANUAL_PATH # pw-beta usb
24-
from .const import CONF_USB_PATH # pw-beta usb
25-
from .const import DOMAIN
22+
from .const import CONF_MANUAL_PATH, CONF_USB_PATH, DOMAIN
2623

2724

2825
@callback
29-
def plugwise_stick_entries(hass): # pw-beta usb
26+
def plugwise_stick_entries(hass):
3027
"""Return existing connections for Plugwise USB-stick domain."""
3128
sticks = []
3229
for entry in hass.config_entries.async_entries(DOMAIN):
3330
sticks.append(entry.data.get(CONF_USB_PATH))
3431
return sticks
3532

3633

37-
async def validate_usb_connection(
38-
self, device_path=None
39-
) -> tuple[dict[str, str], Any]: # pw-beta usb
34+
async def validate_usb_connection(self, device_path=None) -> tuple[dict[str, str], Any]:
4035
"""Test if device_path is a real Plugwise USB-Stick."""
4136
errors = {}
4237

@@ -68,7 +63,7 @@ class PlugwiseUSBConfigFlow(ConfigFlow, domain=DOMAIN):
6863

6964
async def async_step_user(
7065
self, user_input: dict[str, Any] | None = None
71-
) -> FlowResult: # pw-beta usb
66+
) -> FlowResult:
7267
"""Step when user initializes a integration."""
7368
errors: dict[str, str] = {}
7469
ports = await self.hass.async_add_executor_job(serial.tools.list_ports.comports)
@@ -105,7 +100,7 @@ async def async_step_user(
105100

106101
async def async_step_manual_path(
107102
self, user_input: dict[str, Any] | None = None
108-
) -> FlowResult: # pw-beta usb
103+
) -> FlowResult:
109104
"""Step when manual path to device."""
110105
errors: dict[str, str] = {}
111106
if user_input is not None:

custom_components/plugwise_usb/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
from typing import Final
55

6-
import voluptuous as vol # pw-beta usb
6+
import voluptuous as vol
77

88
from homeassistant.const import Platform
99
from homeassistant.helpers import config_validation as cv
@@ -82,7 +82,7 @@
8282
SERVICE_USB_DEVICE_REMOVE: Final = "device_remove"
8383
SERVICE_USB_DEVICE_SCHEMA: Final = vol.Schema(
8484
{vol.Required(ATTR_MAC_ADDRESS): cv.string}
85-
) # pw-beta usb
85+
)
8686

8787

8888
# USB Relay device constants

custom_components/plugwise_usb/sensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from homeassistant.helpers.entity_platform import AddEntitiesCallback
99
from plugwise_usb.nodes import PlugwiseNode
1010

11-
from . import PlugwiseUSBEntity # pw-beta usb
12-
from .const import CB_NEW_NODE, DOMAIN, STICK # pw-beta usb
11+
from . import PlugwiseUSBEntity
12+
from .const import CB_NEW_NODE, DOMAIN, STICK
1313
from .models import PW_SENSOR_TYPES, PlugwiseSensorEntityDescription
1414

1515
PARALLEL_UPDATES = 0
@@ -47,7 +47,7 @@ def discoved_device(mac: str):
4747
api_stick.subscribe_stick_callback(discoved_device, CB_NEW_NODE)
4848

4949

50-
class USBSensor(PlugwiseUSBEntity, SensorEntity): # type: ignore[misc] # pw-beta usb
50+
class USBSensor(PlugwiseUSBEntity, SensorEntity): # type: ignore[misc]
5151
"""Representation of a Plugwise USB sensor."""
5252

5353
def __init__(

custom_components/plugwise_usb/switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from homeassistant.helpers.entity_platform import AddEntitiesCallback
99
from plugwise_usb.nodes import PlugwiseNode
1010

11-
from . import PlugwiseUSBEntity # pw-beta usb
11+
from . import PlugwiseUSBEntity
1212
from .const import CB_NEW_NODE, DOMAIN, STICK
1313
from .models import PW_SWITCH_TYPES, PlugwiseSwitchEntityDescription
1414

0 commit comments

Comments
 (0)