-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use coordinator as the name for *Coordinator. (#163)
Also removes the redundant self._device member because super().__init__() already set self.coordinator. The name is consistent with the naming convention from the ha developer docs: https://developers.home-assistant.io/docs/integration_fetching_data/#coordinated-single-api-poll-for-data-for-all-entities (also the Entity class examples appear to still use the confusing 'device' as the name of the updater; seems like coordinators were introduced after that document was written). For the next step, I am debating whether to expose the blueair_api.*Device as coordinator.device, since adding the type annotation propagation is a lot of work with no obvious gain in neither layer cleanness or functionatliy. But this change is large enough that I would like to file it first.
- Loading branch information
1 parent
0481414
commit 33562aa
Showing
8 changed files
with
176 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.