Skip to content

Commit

Permalink
fix: šŸ› Fix Device floor name being incorrectly set to include Buildinā€¦
Browse files Browse the repository at this point in the history
ā€¦g name when it shouldn't.
  • Loading branch information
jdrew82 committed Jan 9, 2025
1 parent efd1e50 commit 2356a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/650.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed Device floor name being incorrectly defined and including Building name when it shouldn't.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def load_devices(self):
if loc_data.get("floor") and loc_data["building"] not in loc_data["floor"]:
floor_name = f"{loc_data['building']} - {loc_data['floor']}"
elif loc_data.get("floor"):
floor_name = f"{loc_data['building']} - {loc_data['floor']}"
floor_name = loc_data["floor"]
else:
floor_name = None
new_dev = self.device(
Expand Down

0 comments on commit 2356a43

Please sign in to comment.