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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Konnected Pro alarm panel, embrace async, leverage latest HA features/architecture #30894

Merged
merged 13 commits into from
Feb 11, 2020
Next Next commit
fix unique_id computation for switches
  • Loading branch information
heythisisnate authored and kit-klein committed Feb 6, 2020
commit 47fb0f359d2a5da5475f50042744bc1a5d16a114
6 changes: 3 additions & 3 deletions homeassistant/components/konnected/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def __init__(self, device_id, pin_num, data):
self._repeat = self._data.get(CONF_REPEAT)
self._state = self._boolean_state(self._data.get(ATTR_STATE))
self._name = self._data.get(CONF_NAME)
self._unique_id = "{}-{}-{}-{}-{}".format(
device_id, self._pin_num, self._momentary, self._pause, self._repeat
)
self._unique_id = '{}-{}-{}-{}-{}'.format(
device_id, self._pin_num, self._momentary,
self._pause, self._repeat)

@property
def unique_id(self) -> str:
Expand Down