thomashooo

Results 18 comments of thomashooo

> Hi, > > I am trying to install this component but the installation guide is confusing. It say: > > `1: Copy custom_components/sensor/mi_water_purifier.py to .homeassistant/custom_components/sensor` > > But the...

Invalid config for [group]: value should be a string for dictionary value @ data['group']['group']['entities']. Got None. (See /config/configuration.yaml, line 8).

可以用,groups.yml内不要再写group! [https://community.home-assistant.io/t/light-groups-out-of-configuration-yaml/166698](url) ` xiaomiwater: name: WaterPurifier icon: mdi:water entities: - sensor.tap_water - sensor.filtered_water - sensor.pp_cotton_filter - sensor.front_active_carbon_filter - sensor.ro_filter - sensor.rear_active_carbon_filter `

> Just specify -D1,2,3 and then you can use -d for any device at any time. No need to change anything, the functionality is already there. that's it!

在scrollViewDidScroll中加上scrollView.isDecelerating,也能正常侧滑: guard scrollView.isTracking || scrollView.isDragging || scrollView.isDecelerating else { return }

我被这个坑了几天了,不知道是不是类似问题,主要就是滑动切换,没有进行 去更新JXPagingListContainerView.swift中,didClickSelectedItem操作(点击和代码切换都有): public func didClickSelectedItem(at index: Int) { guard checkIndexValid(index) else { return } willAppearIndex = -1 willDisappearIndex = -1 if currentIndex != index { listWillDisappear(at: currentIndex) listWillAppear(at: index) listDidDisappear(at:...

持续研究了一下,最终导致问题的是 scrollViewDidScroll中调用listDidAppearOrDisappear方法无法触发为,下一页。落到scrollViewDidEndDecelerating去执行了取消滑动了。。。

参考这个解决:https://github.com/pujiaxin33/JXSegmentedView/issues/204 添加:scrollView.isDecelerating 状态检测。

> Today one of my students encountered this problem when working with my code. I managed to find the root cause. > > There is a zlib1.dll in his C:\WINDOWS\system32,...