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 sensorpush ble sensors."""
from __future__ import annotations
from typing import Optional, Union
from sensorpush_ble import DeviceClass, DeviceKey, SensorUpdate, Units
from homeassistant import config_entries
@ -116,9 +114,7 @@ async def async_setup_entry(
class SensorPushBluetoothSensorEntity(
PassiveBluetoothProcessorEntity[
PassiveBluetoothDataProcessor[Optional[Union[float, int]]]
],
PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[float | int | None]],
SensorEntity,
):
"""Representation of a sensorpush ble sensor."""