mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Fix replaced - in allowed characters during object_id sanitizing (#5983)
This commit is contained in:
		| @@ -357,7 +357,7 @@ def snake_case(value): | ||||
|     return value.replace(" ", "_").lower() | ||||
|  | ||||
|  | ||||
| _DISALLOWED_CHARS = re.compile(r"[^a-zA-Z0-9_]") | ||||
| _DISALLOWED_CHARS = re.compile(r"[^a-zA-Z0-9-_]") | ||||
|  | ||||
|  | ||||
| def sanitize(value): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user