Skip to content

Commit

Permalink
Minor updates while I look through code for potential issuse
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdonenfeld committed Dec 22, 2022
1 parent 62d84b2 commit 631c3ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: black
language_version: python3.9
- repo: https://github.com/PyCQA/isort
rev: v5.11.3
rev: 5.11.4
hooks:
- id: isort
args: [ --profile=black ]
Expand Down
6 changes: 4 additions & 2 deletions custom_components/aerogarden/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ def update(self):

# Seems to be for multigarden config, untested, adapted from
# https://github.com/JeremyKennedy/homeassistant-aerogarden/commit/5854477c35103d724b86490b90e286b5d74f6660
id = garden.get("configID", None)
garden_mac = garden["airGuid"] + "-" + ("" if id is None else str(id))
garden_id = garden.get("configID", None)
garden_mac = (
garden["airGuid"] + "-" + ("" if garden_id is None else str(garden_id))
)
data[garden_mac] = garden

_LOGGER.debug("Updating data {}".format(data))
Expand Down

0 comments on commit 631c3ab

Please sign in to comment.