Update typing 13 (#48077)

This commit is contained in:
Marc Mueller 2021-03-18 14:43:52 +01:00 committed by GitHub
parent a3cd1854f6
commit b67b9b94f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 287 additions and 226 deletions

View file

@ -1,5 +1,5 @@
"""Allows the creation of a sensor that breaks out state_attributes."""
from typing import Optional
from __future__ import annotations
import voluptuous as vol
@ -165,7 +165,7 @@ class SensorTemplate(TemplateEntity, Entity):
return self._state
@property
def device_class(self) -> Optional[str]:
def device_class(self) -> str | None:
"""Return the device class of the sensor."""
return self._device_class