Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9594b9ebd8 | |||
| b011d98e07 | 
							
								
								
									
										0
									
								
								pyhon/__main__.py
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								pyhon/__main__.py
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| @ -89,8 +89,6 @@ class HonCommand: | ||||
|         for key, parameter in ( | ||||
|             command._parameters | command._ancillary_parameters | ||||
|         ).items(): | ||||
|             if isinstance(parameter, HonParameterFixed): | ||||
|                 continue | ||||
|             if key not in keys: | ||||
|                 keys.append(key) | ||||
|         return keys | ||||
| @ -108,7 +106,6 @@ class HonCommand: | ||||
|  | ||||
|     @property | ||||
|     def settings(self) -> Dict[str, HonParameter]: | ||||
|         """Parameters with typology enum and range""" | ||||
|         return { | ||||
|             s: param | ||||
|             for s in self.setting_keys | ||||
|  | ||||
| @ -75,13 +75,14 @@ class HonAPI: | ||||
|             "code": appliance.info["code"], | ||||
|             "applianceModelId": appliance.appliance_model_id, | ||||
|             "macAddress": appliance.mac_address, | ||||
|             "fwVersion": appliance.info["fwVersion"], | ||||
|             "os": const.OS, | ||||
|             "appVersion": const.APP_VERSION, | ||||
|             "series": appliance.info["series"], | ||||
|         } | ||||
|         if firmware_id := appliance.info.get("eepromId"): | ||||
|             params["firmwareId"] = firmware_id | ||||
|         if firmware_version := appliance.info.get("fwVersion"): | ||||
|             params["fwVersion"] = firmware_version | ||||
|         url: str = f"{const.API_URL}/commands/v1/retrieve" | ||||
|         async with self._hon.get(url, params=params) as response: | ||||
|             result: Dict = (await response.json()).get("payload", {}) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	