Skip to content

Commit

Permalink
Change obj_id_key for WLANs (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored Jul 24, 2023
1 parent dfb3be0 commit 6d76dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiounifi/interfaces/wlans.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Wlans(APIHandler[Wlan]):
"""Represents WLAN configurations."""

obj_id_key = "name"
obj_id_key = "_id"
path = "/rest/wlanconf"
item_cls = Wlan
process_messages = (MessageKey.WLAN_CONF_UPDATED,)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wlans.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def test_wlans(mock_aioresponse, unifi_controller, unifi_called_with):

assert len(wlans.values()) == 2

wlan = wlans["SSID 1"]
wlan = wlans["012345678910111213141516"]
assert wlan.id == "012345678910111213141516"
assert wlan.bc_filter_enabled is False
assert wlan.bc_filter_list == []
Expand Down

0 comments on commit 6d76dcb

Please sign in to comment.