mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix multiline lambda formatting - homekit_controller (#57046)
This commit is contained in:
parent
582788026a
commit
771740c5f9
@ -85,8 +85,10 @@ SIMPLE_SENSOR: dict[str, HomeKitSensorEntityDescription] = {
|
|||||||
native_unit_of_measurement=TEMP_CELSIUS,
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
# This sensor is only for temperature characteristics that are not part
|
# This sensor is only for temperature characteristics that are not part
|
||||||
# of a temperature sensor service.
|
# of a temperature sensor service.
|
||||||
probe=lambda char: char.service.type
|
probe=(
|
||||||
!= ServicesTypes.get_uuid(ServicesTypes.TEMPERATURE_SENSOR),
|
lambda char: char.service.type
|
||||||
|
!= ServicesTypes.get_uuid(ServicesTypes.TEMPERATURE_SENSOR)
|
||||||
|
),
|
||||||
),
|
),
|
||||||
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: HomeKitSensorEntityDescription(
|
CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT: HomeKitSensorEntityDescription(
|
||||||
key=CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT,
|
key=CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT,
|
||||||
@ -96,8 +98,10 @@ SIMPLE_SENSOR: dict[str, HomeKitSensorEntityDescription] = {
|
|||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
# This sensor is only for humidity characteristics that are not part
|
# This sensor is only for humidity characteristics that are not part
|
||||||
# of a humidity sensor service.
|
# of a humidity sensor service.
|
||||||
probe=lambda char: char.service.type
|
probe=(
|
||||||
!= ServicesTypes.get_uuid(ServicesTypes.HUMIDITY_SENSOR),
|
lambda char: char.service.type
|
||||||
|
!= ServicesTypes.get_uuid(ServicesTypes.HUMIDITY_SENSOR)
|
||||||
|
),
|
||||||
),
|
),
|
||||||
CharacteristicsTypes.AIR_QUALITY: HomeKitSensorEntityDescription(
|
CharacteristicsTypes.AIR_QUALITY: HomeKitSensorEntityDescription(
|
||||||
key=CharacteristicsTypes.AIR_QUALITY,
|
key=CharacteristicsTypes.AIR_QUALITY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user