Skip to content

Commit

Permalink
api response means ROUNDS dict no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dt215git committed Oct 16, 2024
1 parent d7ec9dd commit b34709f
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@
"Green Waste": "mdi:leaf",
}

ROUNDS = {
"General Waste": "General Waste",
"Recycling": "Recycling",
"Green Waste": "Green Waste",
}

# _LOGGER = logging.getLogger(__name__)


class Source:
def __init__(
Expand Down Expand Up @@ -133,10 +125,7 @@ def fetch(self):
entries.append(
Collection(
date=date,
# t=waste_type, # api returns GeneralWaste, Recycling, GreenWaste
t=ROUNDS.get(
waste_type
), # returns user-friendly General Waste, Recycling, Green Waste
t=waste_type,
icon=ICON_MAP.get(waste_type),
)
)
Expand Down

0 comments on commit b34709f

Please sign in to comment.