This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gtfs typing and logger issues (home-assistant#22572)
## Description: Some code cleanup requests where raised in the [latest merged GTFS commit](home-assistant@9153e3b). This new PR aims to address them, including: - Clear all typing issues. - Respect logger levels and format. - Simplify some non-pythonic lines. This sensor now passes `mypy` testing, but does so by ignoring two lines with `# type: ignore`. **Related issue (if applicable):** fixes issues raised by @MartinHjelmare in home-assistant#20966 ## Checklist: - [x] The code change is tested and works locally. - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass** - [x] There is no commented out code in this PR. [ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14 [ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23
- Loading branch information
Showing
1 changed file
with
34 additions
and
36 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