python-can-remote
                                
                                
                                
                                    python-can-remote copied to clipboard
                            
                            
                            
                        Exception when passing BusState to RemoteBus
On initialization of RemoteBus I get an exception on this line because it can not convert BusState to json: https://github.com/christiansandberg/python-can-remote/blob/5e76930cb336da21ebcd1f675a8bece3f6bb5308/can_remote/protocol.py#L66
BusState is defined here: https://github.com/hardbyte/python-can/blob/develop/can/bus.py#L22
How could that be fixed? Other Bus implementations allow this parameter. (Like https://github.com/hardbyte/python-can/blob/develop/can/interfaces/pcan/pcan.py#L117)