Complete helpers.service type hints (#40193)

* Complete helpers.service type hints

* Update homeassistant/helpers/service.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Handle None entity.supported_features
This commit is contained in:
Ville SkyttäandPaulus Schoutsen authored and GitHub committed 2020-09-20 12:03:58 +03:00
1 parent 5dcaeebdac
commit 167490b71c
2 files changed
+32 -15

No files matched your search

+1 -1
View File
@@ -546,7 +546,7 @@ class EntityPlatform:
async def handle_service(call: ServiceCall) -> None:
"""Handle the service."""
await service.entity_service_call( # type: ignore
await service.entity_service_call(
self.hass,
[
plf