def check_entity_sensors_temp( item: str, params: TempParamType, section: EntitySensorSection, ) -> CheckResult: if not (sensor_reading := section.get('temp', {}).get(item)): return
def check_entity_sensors_power_presence( item: str, params: Mapping[str, Any], section: EntitySensorSection, ) -> CheckResult: if not (sensor_reading := section.get('power_presence', {}).get(item)): return
def check_entity_sensors_fan( item: str, params: Mapping[str, Any], section: EntitySensorSection, ) -> CheckResult: if not (sensor_reading := section.get("fan", {}).get(item)): return
def discover_entity_sensors_temp( section: EntitySensorSection) -> DiscoveryResult: yield from (Service(item=item) for item in section.get('temp', {}))
def discover_entity_sensors_power_presence( section: EntitySensorSection) -> DiscoveryResult: yield from (Service(item=item) for item in section.get('power_presence', {}))