Update typing 07 (#48057)

This commit is contained in:
Marc Mueller 2021-03-18 08:02:55 +01:00 committed by GitHub
parent 08db262972
commit 9e1a6610dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 185 additions and 142 deletions

View file

@ -1,6 +1,7 @@
"""Feed Entity Manager Sensor support for GDACS Feed."""
from __future__ import annotations
import logging
from typing import Optional
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
@ -109,12 +110,12 @@ class GdacsSensor(Entity):
return self._total
@property
def unique_id(self) -> Optional[str]:
def unique_id(self) -> str | None:
"""Return a unique ID containing latitude/longitude."""
return self._config_unique_id
@property
def name(self) -> Optional[str]:
def name(self) -> str | None:
"""Return the name of the entity."""
return f"GDACS ({self._config_title})"