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 SensorPro sensors."""
from __future__ import annotations
from typing import Optional, Union
from sensorpro_ble import (
SensorDeviceClass as SensorProSensorDeviceClass,
SensorUpdate,
@ -128,9 +126,7 @@ async def async_setup_entry(
class SensorProBluetoothSensorEntity(
PassiveBluetoothProcessorEntity[
PassiveBluetoothDataProcessor[Optional[Union[float, int]]]
],
PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[float | int | None]],
SensorEntity,
):
"""Representation of a SensorPro sensor."""