Skip to content

Commit

Permalink
Rename LyricAccessories to LyricAccessory (#79)
Browse files Browse the repository at this point in the history
* rename LyricAccessories to LyricAccessory

Properly reflect the object is a single accessory, not a collection of accessories

* Revert version change

---------

Co-authored-by: Aidan Timson <[email protected]>
  • Loading branch information
dalinicus and timmo001 authored Apr 21, 2024
1 parent 1979e9e commit 7ad690c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiolyric/objects/priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from .base import LyricBaseObject


class LyricAccessories(LyricBaseObject):
"""Lyric accessories."""
class LyricAccessory(LyricBaseObject):
"""Lyric accessory."""

@property
def id(self):
Expand Down Expand Up @@ -73,7 +73,7 @@ def overall_motion(self):
@property
def accessories(self):
"""Get the list of accessories in the room."""
return [LyricAccessories(x) for x in self.attributes.get("accessories", [])]
return [LyricAccessory(x) for x in self.attributes.get("accessories", [])]


class CurrentPriority(LyricBaseObject):
Expand Down

0 comments on commit 7ad690c

Please sign in to comment.