Address weatherkit late review comments (#100265)

* Address review comments from original weatherkit PR

* Use .get() for optional fields
This commit is contained in:
TJ Horner 2023-09-13 00:22:58 -07:00 committed by GitHub
parent e87603aa59
commit dd95b51d10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 95 additions and 87 deletions

View file

@ -5,7 +5,10 @@ LOGGER: Logger = getLogger(__package__)
NAME = "Apple WeatherKit"
DOMAIN = "weatherkit"
ATTRIBUTION = "Data provided by Apple Weather. https://developer.apple.com/weatherkit/data-source-attribution/"
ATTRIBUTION = (
"Data provided by Apple Weather. "
"https://developer.apple.com/weatherkit/data-source-attribution/"
)
CONF_KEY_ID = "key_id"
CONF_SERVICE_ID = "service_id"