Update Optional typing (2) [Py310] (#86419)
This commit is contained in:
parent
40be2324cc
commit
da35097803
21 changed files with 26 additions and 92 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue