mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix some typos (#202)
This commit is contained in:
		| @@ -461,7 +461,7 @@ def parse_args(argv): | |||||||
|     subparsers.add_parser('clean', help="Delete all temporary build files.") |     subparsers.add_parser('clean', help="Delete all temporary build files.") | ||||||
|  |  | ||||||
|     dashboard = subparsers.add_parser('dashboard', |     dashboard = subparsers.add_parser('dashboard', | ||||||
|                                       help="Create a simple webserver for a dashboard.") |                                       help="Create a simple web server for a dashboard.") | ||||||
|     dashboard.add_argument("--port", help="The HTTP port to open connections on.", type=int, |     dashboard.add_argument("--port", help="The HTTP port to open connections on.", type=int, | ||||||
|                            default=6052) |                            default=6052) | ||||||
|     dashboard.add_argument("--password", help="The optional password to require for all requests.", |     dashboard.add_argument("--password", help="The optional password to require for all requests.", | ||||||
|   | |||||||
| @@ -83,7 +83,7 @@ CONFIG_SCHEMA = vol.All(vol.Schema({ | |||||||
|     vol.Optional(CONF_MANUAL_IP): STA_MANUAL_IP_SCHEMA, |     vol.Optional(CONF_MANUAL_IP): STA_MANUAL_IP_SCHEMA, | ||||||
|     vol.Optional(CONF_AP): WIFI_NETWORK_AP, |     vol.Optional(CONF_AP): WIFI_NETWORK_AP, | ||||||
|     vol.Optional(CONF_HOSTNAME): cv.hostname, |     vol.Optional(CONF_HOSTNAME): cv.hostname, | ||||||
|     vol.Optional(CONF_DOMAIN, default='.local'): cv.domainname, |     vol.Optional(CONF_DOMAIN, default='.local'): cv.domain_name, | ||||||
|     vol.Optional(CONF_REBOOT_TIMEOUT): cv.positive_time_period_milliseconds, |     vol.Optional(CONF_REBOOT_TIMEOUT): cv.positive_time_period_milliseconds, | ||||||
|     vol.Optional(CONF_POWER_SAVE_MODE): vol.All(vol.Upper, cv.one_of(*WIFI_POWER_SAVE_MODES)), |     vol.Optional(CONF_POWER_SAVE_MODE): vol.All(vol.Upper, cv.one_of(*WIFI_POWER_SAVE_MODES)), | ||||||
| }), validate) | }), validate) | ||||||
|   | |||||||
| @@ -440,15 +440,15 @@ def hostname(value): | |||||||
|     return value |     return value | ||||||
|  |  | ||||||
|  |  | ||||||
| def domainname(value): | def domain_name(value): | ||||||
|     value = string(value) |     value = string(value) | ||||||
|     if not value.startswith('.'): |     if not value.startswith('.'): | ||||||
|         raise vol.Invalid("Domainname must start with .") |         raise vol.Invalid("Domain name must start with .") | ||||||
|     if value.startswith('..'): |     if value.startswith('..'): | ||||||
|         raise vol.Invalid("Domainname must start with single .") |         raise vol.Invalid("Domain name must start with single .") | ||||||
|     for c in value: |     for c in value: | ||||||
|         if not (c.isalnum() or c in '._-'): |         if not (c.isalnum() or c in '._-'): | ||||||
|             raise vol.Invalid("Domainname can only have alphanumeric characters and _ or -") |             raise vol.Invalid("Domain name can only have alphanumeric characters and _ or -") | ||||||
|     return value |     return value | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -52,12 +52,6 @@ | |||||||
|       padding-bottom: 10px; |       padding-bottom: 10px; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     .chip { |  | ||||||
|       height: 26px; |  | ||||||
|       font-size: 12px; |  | ||||||
|       line-height: 26px; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     .log { |     .log { | ||||||
|       background-color: #1c1c1c; |       background-color: #1c1c1c; | ||||||
|       margin-top: 0; |       margin-top: 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user