Update typing 06 (#48039)
This commit is contained in:
parent
7c0734bdd5
commit
91df3fa904
40 changed files with 241 additions and 211 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue