Compare commits
	
		
			1 Commits
		
	
	
		
			v0.7.3-bet
			...
			v0.7.3-bet
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6828f3e9a8 | 
| @ -7,5 +7,5 @@ | ||||
|   "iot_class": "cloud_polling", | ||||
|   "issue_tracker": "https://github.com/Andre0512/hon/issues", | ||||
|  "requirements": ["pyhOn==0.10.6"], | ||||
|   "version": "0.7.3-beta.1" | ||||
|   "version": "0.7.3-beta.2" | ||||
| } | ||||
|  | ||||
| @ -323,14 +323,16 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non | ||||
|  | ||||
|         if descriptions := SWITCHES.get(device.appliance_type): | ||||
|             for description in descriptions: | ||||
|                 if ( | ||||
|                     description.entity_category == EntityCategory.CONFIG | ||||
|                     and description.key not in device.available_settings | ||||
|                     or not any( | ||||
|                         device.get(description.key) is not None | ||||
|                         or description.turn_on_key in list(device.commands) | ||||
|                         or description.turn_off_key in list(device.commands) | ||||
|                     ) | ||||
|                 if description.entity_category == EntityCategory.CONFIG: | ||||
|                     if description.key not in device.available_settings: | ||||
|                         continue | ||||
|                 else: | ||||
|                     if not any( | ||||
|                         [ | ||||
|                             device.get(description.key) is not None, | ||||
|                             description.turn_on_key in list(device.commands), | ||||
|                             description.turn_off_key in list(device.commands), | ||||
|                         ] | ||||
|                     ): | ||||
|                         continue | ||||
|                 appliances.extend( | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	