Update typing 06 (#48039)

This commit is contained in:
Marc Mueller 2021-03-17 23:49:01 +01:00 committed by GitHub
parent 7c0734bdd5
commit 91df3fa904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 241 additions and 211 deletions

View file

@ -1,6 +1,7 @@
"""Support for Essent API."""
from __future__ import annotations
from datetime import timedelta
from typing import Optional
from pyessent import PyEssent
import voluptuous as vol
@ -94,7 +95,7 @@ class EssentMeter(Entity):
self._unit = unit
@property
def unique_id(self) -> Optional[str]:
def unique_id(self) -> str | None:
"""Return a unique ID."""
return f"{self._meter}-{self._type}-{self._tariff}"