mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Bump pyupgrade from 3.10.1 to 3.13.0 (#5428)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		| @@ -964,7 +964,7 @@ RC_SWITCH_PROTOCOL_SCHEMA = cv.Any( | ||||
|  | ||||
|  | ||||
| def validate_rc_switch_code(value): | ||||
|     if not isinstance(value, (str, str)): | ||||
|     if not isinstance(value, str): | ||||
|         raise cv.Invalid("All RCSwitch codes must be in quotes ('')") | ||||
|     for c in value: | ||||
|         if c not in ("0", "1"): | ||||
| @@ -981,7 +981,7 @@ def validate_rc_switch_code(value): | ||||
|  | ||||
|  | ||||
| def validate_rc_switch_raw_code(value): | ||||
|     if not isinstance(value, (str, str)): | ||||
|     if not isinstance(value, str): | ||||
|         raise cv.Invalid("All RCSwitch raw codes must be in quotes ('')") | ||||
|     for c in value: | ||||
|         if c not in ("0", "1", "x"): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user