mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Fix Wifi power_save_mode option (#178)
* Fix WIFI power_save_mode option * Add Test
This commit is contained in:
		| @@ -135,7 +135,7 @@ def to_code(config): | |||||||
|         add(wifi.set_reboot_timeout(config[CONF_REBOOT_TIMEOUT])) |         add(wifi.set_reboot_timeout(config[CONF_REBOOT_TIMEOUT])) | ||||||
|  |  | ||||||
|     if CONF_POWER_SAVE_MODE in config: |     if CONF_POWER_SAVE_MODE in config: | ||||||
|         add(wifi.set_power_save_mode(WIFI_POWER_SAVE_MODES[CONF_POWER_SAVE_MODE])) |         add(wifi.set_power_save_mode(WIFI_POWER_SAVE_MODES[config[CONF_POWER_SAVE_MODE]])) | ||||||
|  |  | ||||||
|  |  | ||||||
| def lib_deps(config): | def lib_deps(config): | ||||||
|   | |||||||
| @@ -35,6 +35,7 @@ wifi: | |||||||
|   hostname: myverylonghostname |   hostname: myverylonghostname | ||||||
|   domain: .local |   domain: .local | ||||||
|   reboot_timeout: 120s |   reboot_timeout: 120s | ||||||
|  |   power_save_mode: none | ||||||
|  |  | ||||||
| mqtt: | mqtt: | ||||||
|   broker: '192.168.178.84' |   broker: '192.168.178.84' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user