1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 06:32:22 +01:00

[spi] relay on KEY_TARGET_PLATFORM as the other platforms does (#8066)

This commit is contained in:
tomaszduda23
2025-01-12 23:15:39 +01:00
committed by GitHub
parent 40bee2a854
commit 731fb1d172
3 changed files with 5 additions and 9 deletions

View File

@@ -97,11 +97,7 @@ RP_SPI_PINSETS = [
def get_target_platform():
return (
CORE.data[KEY_CORE][KEY_TARGET_PLATFORM]
if KEY_TARGET_PLATFORM in CORE.data[KEY_CORE]
else ""
)
return CORE.data[KEY_CORE][KEY_TARGET_PLATFORM]
def get_target_variant():