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 
12  """Error to indicate we cannot connect."""
13 
14 
15 class InvalidAuth(exceptions.HomeAssistantError):
16  """Error to indicate there is invalid auth."""
17 
18 
20  """Error to indicate there was an issue with the webhook."""