mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Gracefully reject vacuum map upload requests (#4414)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		| @@ -247,6 +247,11 @@ void Tuya::handle_command_(uint8_t command, uint8_t version, const uint8_t *buff | |||||||
|       ESP_LOGE(TAG, "LOCAL_TIME_QUERY is not handled"); |       ESP_LOGE(TAG, "LOCAL_TIME_QUERY is not handled"); | ||||||
| #endif | #endif | ||||||
|       break; |       break; | ||||||
|  |     case TuyaCommandType::VACUUM_MAP_UPLOAD: | ||||||
|  |       this->send_command_( | ||||||
|  |           TuyaCommand{.cmd = TuyaCommandType::VACUUM_MAP_UPLOAD, .payload = std::vector<uint8_t>{0x01}}); | ||||||
|  |       ESP_LOGW(TAG, "Vacuum map upload requested, responding that it is not enabled."); | ||||||
|  |       break; | ||||||
|     case TuyaCommandType::GET_NETWORK_STATUS: { |     case TuyaCommandType::GET_NETWORK_STATUS: { | ||||||
|       uint8_t wifi_status = this->get_wifi_status_code_(); |       uint8_t wifi_status = this->get_wifi_status_code_(); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -55,6 +55,7 @@ enum class TuyaCommandType : uint8_t { | |||||||
|   DATAPOINT_QUERY = 0x08, |   DATAPOINT_QUERY = 0x08, | ||||||
|   WIFI_TEST = 0x0E, |   WIFI_TEST = 0x0E, | ||||||
|   LOCAL_TIME_QUERY = 0x1C, |   LOCAL_TIME_QUERY = 0x1C, | ||||||
|  |   VACUUM_MAP_UPLOAD = 0x28, | ||||||
|   GET_NETWORK_STATUS = 0x2B, |   GET_NETWORK_STATUS = 0x2B, | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user