Skip to content

Commit

Permalink
fix: only skip enum if legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed May 22, 2024
1 parent 281a941 commit 60e440a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nexa_bridge_x/nexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ async def fetch_info(self) -> NexaInfoData:

async def fetch_nodes(self, skip_enum: bool) -> list[NexaNodeData]:
"""Get all configured nodes"""
if skip_enum:
if skip_enum and self.legacy:
return []

result = await self.request("get", "nodes")
Expand Down

0 comments on commit 60e440a

Please sign in to comment.