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

Master #22

Merged
merged 2 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom_components/airscape/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
"interlock1": "interlock1",
"interlock2": "interlock2",
"timeremaining": "shutoff_timer",
"macaddr": "macaddr",
}
5 changes: 5 additions & 0 deletions custom_components/airscape/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def __init__(self, device, name, minimum):
self._minimum_speed = minimum
self._attr = {}

@property
def unique_id(self):
"""Return a unique id based on the MAC address."""
return self._attr['macaddr']

@property
def name(self):
"""Return the display name of this fan."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/airscape/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Airscape Whole House Fan",
"documentation": "https://www.home-assistant.io/components/fan.airscape",
"issue_tracker": "https://github.com/quielb/hass-airscape/issues",
"version": "0.1.9.5.1",
"version": "0.1.9.5.5",
"requirements": [
"airscape==0.1.9.4.1"
],
Expand Down
5 changes: 5 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ A Home Assistant custom component to control Airscape Whole House Fans with Gen2
{% endif %}

### Changes
{% if version_installed.replace("v", "").replace(".","") | int < 1955 %}

- Adding unique ids to all fan entities which will allow them to be configured via the UI.
{% endif %}


{% if version_installed.replace("v", "").replace(".","") | int < 1951 %}

Expand Down
Loading