mirror of
https://github.com/home-assistant/core.git
synced 2026-05-26 10:15:33 +01:00
219417cfb5
* Move homeworks base entity to separate module * Move calculate_unique_id to util.py
7 lines
225 B
Python
7 lines
225 B
Python
"""Support for Lutron Homeworks Series 4 and 8 systems."""
|
|
|
|
|
|
def calculate_unique_id(controller_id: str, addr: str, idx: int) -> str:
|
|
"""Calculate entity unique id."""
|
|
return f"homeworks.{controller_id}.{addr}.{idx}"
|