#153
@@ -53,7 +53,11 @@ class TuyaLocalEntity:
@property
def entity_category(self):
"""Return the entitiy's category."""
- return EntityCategory(self._config.entity_category)
+ return (
+ None
+ if self._config.entity_category is None
+ else EntityCategory(self._config.entity_category)
+ )
def icon(self):
@@ -2,7 +2,7 @@
"domain": "tuya_local",
"iot_class": "local_polling",
"name": "Tuya Local",
- "version": "0.16.0",
+ "version": "0.16.2",
"documentation": "https://github.com/make-all/tuya-local",
"issue_tracker": "https://github.com/make-all/tuya-local/issues",
"dependencies": [],