diff --git a/async_upnp_client/server.py b/async_upnp_client/server.py index 7aa3ca5..a0acbee 100644 --- a/async_upnp_client/server.py +++ b/async_upnp_client/server.py @@ -257,7 +257,7 @@ def create_state_var( state_var_info = StateVariableInfo( name, - send_events=False, + send_events=isinstance(type_info, EventableStateVariableTypeInfo), type_info=type_info, xml=ET.Element("stateVariable"), ) diff --git a/changes/242.bugfix b/changes/242.bugfix new file mode 100644 index 0000000..10821ca --- /dev/null +++ b/changes/242.bugfix @@ -0,0 +1 @@ +Fix send_events in server state variable.