Home Assistant Unofficial Reference
2024.12.1
helpers.py
Go to the documentation of this file.
1
"""nuki integration helpers."""
2
3
from
homeassistant
import
exceptions
4
5
6
def
parse_id
(hardware_id):
7
"""Parse Nuki ID."""
8
return
hex(hardware_id).split(
"x"
)[-1].upper()
9
10
11
class
CannotConnect
(
exceptions.HomeAssistantError
):
12
"""Error to indicate we cannot connect."""
13
14
15
class
InvalidAuth(
exceptions.HomeAssistantError
):
16
"""Error to indicate there is invalid auth."""
17
18
19
class
NukiWebhookException
(
exceptions.HomeAssistantError
):
20
"""Error to indicate there was an issue with the webhook."""
homeassistant.components.nuki.helpers.CannotConnect
Definition:
helpers.py:11
homeassistant.components.nuki.helpers.NukiWebhookException
Definition:
helpers.py:19
homeassistant.exceptions.HomeAssistantError
Definition:
exceptions.py:34
homeassistant.components.nuki.helpers.parse_id
def parse_id(hardware_id)
Definition:
helpers.py:6
core
homeassistant
components
nuki
helpers.py
Generated by
1.9.1