Update Optional typing (2) [Py310] (#86419)

This commit is contained in:
Marc Mueller 2023-01-23 09:10:05 +01:00 committed by GitHub
parent 40be2324cc
commit da35097803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 26 additions and 92 deletions

View file

@ -1,8 +1,6 @@
"""Support for Aranet sensors."""
from __future__ import annotations
from typing import Optional, Union
from aranet4.client import Aranet4Advertisement
from bleak.backends.device import BLEDevice
@ -145,9 +143,7 @@ async def async_setup_entry(
class Aranet4BluetoothSensorEntity(
PassiveBluetoothProcessorEntity[
PassiveBluetoothDataProcessor[Optional[Union[float, int]]]
],
PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[float | int | None]],
SensorEntity,
):
"""Representation of an Aranet sensor."""