Compare commits
	
		
			2 Commits
		
	
	
		
			v0.8.0-bet
			...
			v0.8.0-bet
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d39deba973 | |||
| fae4c4c879 | 
| @ -69,7 +69,7 @@ class HonButtonEntity(HonEntity, ButtonEntity): | |||||||
|         """Return True if entity is available.""" |         """Return True if entity is available.""" | ||||||
|         return ( |         return ( | ||||||
|             super().available |             super().available | ||||||
|             and self._device.get("remoteCtrValid") == "1" |             and self._device.get("remoteCtrValid", "1") == "1" | ||||||
|             and self._device.get("attributes.lastConnEvent.category") != "DISCONNECTED" |             and self._device.get("attributes.lastConnEvent.category") != "DISCONNECTED" | ||||||
|         ) |         ) | ||||||
|  |  | ||||||
|  | |||||||
| @ -6,6 +6,6 @@ | |||||||
|   "documentation": "https://github.com/Andre0512/hon/", |   "documentation": "https://github.com/Andre0512/hon/", | ||||||
|   "iot_class": "cloud_polling", |   "iot_class": "cloud_polling", | ||||||
|   "issue_tracker": "https://github.com/Andre0512/hon/issues", |   "issue_tracker": "https://github.com/Andre0512/hon/issues", | ||||||
|  "requirements": ["pyhOn==0.10.6"], |  "requirements": ["pyhOn==0.10.7"], | ||||||
|   "version": "0.8.0-beta.1" |   "version": "0.8.0-beta.2" | ||||||
| } | } | ||||||
|  | |||||||
| @ -243,7 +243,7 @@ class HonNumberEntity(HonEntity, NumberEntity): | |||||||
|         else: |         else: | ||||||
|             return ( |             return ( | ||||||
|                 super().available |                 super().available | ||||||
|                 and self._device.get("remoteCtrValid") == "1" |                 and self._device.get("remoteCtrValid", "1") == "1" | ||||||
|                 and self._device.get("attributes.lastConnEvent.category") |                 and self._device.get("attributes.lastConnEvent.category") | ||||||
|                 != "DISCONNECTED" |                 != "DISCONNECTED" | ||||||
|             ) |             ) | ||||||
|  | |||||||
| @ -207,7 +207,7 @@ class HonSelectEntity(HonEntity, SelectEntity): | |||||||
|         else: |         else: | ||||||
|             return ( |             return ( | ||||||
|                 super().available |                 super().available | ||||||
|                 and self._device.get("remoteCtrValid") == "1" |                 and self._device.get("remoteCtrValid", "1") == "1" | ||||||
|                 and self._device.get("attributes.lastConnEvent.category") |                 and self._device.get("attributes.lastConnEvent.category") | ||||||
|                 != "DISCONNECTED" |                 != "DISCONNECTED" | ||||||
|             ) |             ) | ||||||
|  | |||||||
| @ -434,7 +434,7 @@ class HonSwitchEntity(HonEntity, SwitchEntity): | |||||||
|         else: |         else: | ||||||
|             return ( |             return ( | ||||||
|                 super().available |                 super().available | ||||||
|                 and self._device.get("remoteCtrValid") == "1" |                 and self._device.get("remoteCtrValid", "1") == "1" | ||||||
|                 and self._device.get("attributes.lastConnEvent.category") |                 and self._device.get("attributes.lastConnEvent.category") | ||||||
|                 != "DISCONNECTED" |                 != "DISCONNECTED" | ||||||
|             ) |             ) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	