1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 15:22:24 +01:00

Enable networking and some other components on host platform (#6114)

This commit is contained in:
Clyde Stubbs
2024-01-19 12:10:23 +11:00
committed by GitHub
parent 6a6a70f1e5
commit 8267b3274c
6 changed files with 29 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ from contextlib import suppress
import logging
import os
import platform
from pathlib import Path
from typing import Union
import tempfile
@@ -11,6 +12,10 @@ import re
_LOGGER = logging.getLogger(__name__)
IS_MACOS = platform.system() == "Darwin"
IS_WINDOWS = platform.system() == "Windows"
IS_LINUX = platform.system() == "Linux"
def ensure_unique_string(preferred_string, current_strings):
test_string = preferred_string